fix: resolve Snyk-flagged vulnerabilities in dependency overrides [EXP-1311] - #40
Merged
Conversation
Bump brace-expansion to 5.0.9 and dompurify to 3.4.13 in the overrides block, and regenerate package-lock.json so the lockfile reflects the pinned resolutions. The stale lockfile was also causing `snyk test` to abort with an unknown error rather than report results. `snyk test` now passes: 357 dependencies tested, no vulnerable paths found. EXP-1311 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
vivekcontentstack
approved these changes
Aug 14, 2026
abhijit-turate-cstk
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remediates the Snyk-flagged dependency vulnerabilities tracked in EXP-1311.
brace-expansion5.0.7→5.0.9(scoped under the@contentstack/venus-componentsoverride)dompurify3.4.1→3.4.13package-lock.jsonso the lockfile reflects the pinned resolutionsContext
The lockfile had drifted out of sync with the
overridesblock. Since Snyk builds its dependency graph from the lockfile,snyk testwas aborting with an opaqueAn unknown error occurredrather than reporting findings — so the scan had to be unblocked before the vulnerabilities could be confirmed cleared.The bulk of the
package-lock.jsondiff is transitive bumps that resolved within existing semver ranges during regeneration (mostly@babel/*patch releases); no direct dependency ranges were widened.Verification
npx snyk testpasses against the regenerated lockfile:Notes for reviewers
Two things worth a look:
brace-expansionoverride is nested under@contentstack/venus-components, which does not pullbrace-expansionanywhere in the current tree — so that entry is effectively inert. Thebrace-expansioncopies that actually resolve come fromminimatch,rimraf, andtslint(dev tooling) at2.1.4/1.1.18, both already past the ReDoS advisory. If the intent was a global pin, the entry belongs at the top level ofoverridesalongsidedompurify.npm auditstill reports 8 issues (7 moderate, 1 high) that Snyk does not flag — the two tools use different advisory databases and severity thresholds. Out of scope here; happy to open a follow-up if we want those addressed.🤖 Generated with Claude Code