Repository navigation
fix: resolve 25 security issues - #313
Open
snyk-io[bot] wants to merge 1 commit into
Open
snyk-io[bot] wants to merge 1 commit into
snyk-io[bot] wants to merge 1 commit into
Conversation
|
|
Contributor
Author
✅ 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. |
This branch has not been deployed
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.
Snyk fixed 25 vulnerabilities, the most severe rated critical
A post-fix re-scan confirms they are resolved.
Fixed:
2 critical,
23 high · Also fixed:
9 medium
Changes
@babel/plugin-transform-modules-systemjs 7.29.0 → 7.29.4 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade from
7.29.0to7.29.4. This range includes several patch releases containing bug fixes and internal improvements. No breaking changes have been documented for this specific package in this version range.Source: Babel Releases
Reviewer Notes
npm run buildfor the site. The Babel plugin runs during the Docusaurus build, so a successful build is the most relevant check. The lockfile diff touched more entries than the one plugin, because the relock moved other in-range transitive packages. Skim the diff to confirm that is acceptable.@docusaurus/core→@docusaurus/babel→@babel/preset-env). The fix was a targeted relock withnpm update @babel/plugin-transform-modules-systemjs --package-lock-only --ignore-scripts. Nopackage.jsonedit or override was needed. Onlypackage-lock.jsonchanged. The lockfile resolved the plugin to 7.29.8 rather than the planned 7.29.4.brace-expansion 1.1.13 → 1.1.21 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade that addresses multiple security vulnerabilities. The changes between version 1.1.13 and 1.1.21 are primarily focused on fixing Denial of Service (DoS) issues related to uncontrolled resource consumption and inefficient algorithmic complexity.
There are no documented breaking API changes in this version range. The upgrade adds safeguards to prevent the application from crashing or hanging when processing malicious or excessively large patterns.
Recommendation: This is a safe and recommended security update.
Reviewer Notes
npm run buildwas not run. The lockfile has onebrace-expansioncopy, and it is used throughminimatch3.x.brace-expansionis a transitive dependency. It was fixed with a targeted relock (npm update brace-expansion), with no manifest edit and no override. It resolved to 1.1.22, a later patch than the planned 1.1.21. That is still in the 1.x line and above every listed fixed version for that line (highest 1.1.21). Onlypackage-lock.jsonchanged.browserslist 4.28.1 → 4.28.7 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade that includes bug fixes, performance improvements, and a security patch.
No breaking changes are documented for this upgrade path.
Source: GitHub Releases
Reviewer Notes
npm run buildto confirm the Docusaurus site still builds. The lockfile resolved browserslist to 4.29.5, a newer minor than the planned 4.28.7, because the existing^4.xranges allowed it. 4.29.5 is above the 4.28.7 fix, so the fix is included. Check that this minor jump, and the five other packages the relock moved, did not change the build output.node_modules/browserslistentry, at 4.29.5.@docusaurus/core,@docusaurus/bundlerandpostcss-preset-env. The fix was a targeted relock withnpm update browserslist. Onlypackage-lock.jsonchanged.package.jsonwas not edited and no override was added.compression 1.8.1 → 1.8.2 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade. The main change is a bug fix to make the
Cache-Controlno-transformdirective matching case-insensitive. This is a low-risk change that improves spec compliance.Changes:
Cache-Controlno-transformdirective case-insensitively.Source: Release notes
Breaking Change Reachability
Impact: none-detected · Confidence: medium. The only changed surface is that the
no-transformdirective inCache-Controlis now matched case-insensitively. No project code uses it. The only hit was in the lockfile atpackage-lock.json:17190. The list of changed surfaces may be incomplete. No mechanical fix was needed.Reviewer Notes
compressionis only used by the Docusaurus dev server (webpack-dev-server), so the change affects localdocusaurus startanddocusaurus serve, not the built site.compressionto 1.8.2.compressionis a transitive dependency, reached through@docusaurus/coreandwebpack-dev-server. A targeted lockfile-only update (npm update compression --package-lock-only --ignore-scripts) moved it to 1.8.2, the planned target. No manifest edit or override was needed.image-size 2.0.2 → 2.0.3 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade that addresses a security vulnerability.
Source: GitHub Advisory Database.
The fix landed. The lockfile now resolves
image-sizeto 2.1.0, which is above the fixed version 2.0.3. Tests were skipped because the project has no runnable test suite.Reviewer Notes
image-sizeto 2.1.0, a minor release above the planned 2.0.3. Runnpm run buildto confirm the Docusaurus site still builds, sinceimage-sizeis used while Docusaurus processes images.npm updatecompleted without install errors. Nothing was run to check the build.image-sizeis a transitive dependency, reached through@docusaurus/coreand@docusaurus/mdx-loader. A targeted relock (npm update image-size) fixed it, sopackage.jsonand its overrides are unchanged and onlypackage-lock.jsonchanged.joi 17.13.3 → 17.13.9 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade for joi. The changes between versions 17.13.3 and 17.13.9 consist of bug fixes and security patches.
Key Changes:
multipleoption (v17.13.9).No breaking API changes or mandatory code modifications are documented in this version range.
Source: Official Changelog
Breaking Change Reachability
Impact: none-detected · Confidence: medium. No usage of the changed surfaces was found in the project. The only item listed was the behavioral change to
Joi.string().email, and the only match was the lockfile entry at package-lock.json:9665. The list of changed surfaces may be incomplete. No code changes were needed.Reviewer Notes
joiis only used inside Docusaurus's own config validation, not by project code. A normal site build would confirm that Docusaurus still loads and validates its config.joiresolved to 17.13.9.joiis a transitive dependency, reached through@docusaurus/core,@docusaurus/mdx-loaderand@docusaurus/utils-validation. The fix was a targeted relock withnpm update joi. No manifest edit or override was needed, and onlypackage-lock.jsonchanged.js-yaml 3.14.2 → 3.15.2 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a minor version upgrade within the v3 branch of js-yaml. The primary change between these versions is a security fix.
This upgrade does not include the major breaking API changes introduced in the v4.0.0 release. No code changes are expected for typical usage.
Source: Changelog
Reviewer Notes
npm run buildto confirm the Docusaurus site still builds. This covers front-matter parsing ingray-matter, which uses the 3.x copy. The lockfile diff is larger than a single-package bump (about 150 lines added and 107 removed). Skim it to check that the other changed entries are acceptable.gray-mattercopy of js-yaml now resolves to 3.15.2, and the top-level copy now resolves to 4.3.2.@docusaurus/coreandgray-matter. The fix was a targeted relock withnpm update js-yaml --package-lock-only --ignore-scripts. Nopackage.jsonedit or override was needed, and onlypackage-lock.jsonchanged. The 3.x copy moved to the planned 3.15.2. The 4.x copy moved to 4.3.2, which matches the other entry in the plan.nanoid 3.3.11 → 3.3.17 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade for
nanoid. The changes between versions 3.3.11 and 3.3.17 consist of performance improvements and reductions in the npm package size. No breaking changes, deprecations, or API modifications are documented in this range.Source: Package Changelog
Reviewer Notes
npm run buildto confirm the Docusaurus site still builds. No test suite exists to cover this change. The lockfile resolved to 3.3.20, which is newer than the planned 3.3.17 but still within the 3.x line. This is the versionnpm updatepicked, so it is the one to check.package.jsondiff is empty. Onlypackage-lock.jsonchanged.nanoidis a transitive dependency. It was fixed with a targetednpm update nanoid, which re-locked it within the rangepostcssalready allows. No override was needed. The lockfile has a singlenanoidentry, now at 3.3.20, which is above all three fixed versions (3.3.12, 3.3.16 and 3.3.17).postcss-selector-parser 6.1.2 → 6.1.5 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade for
postcss-selector-parserfrom6.1.2to6.1.5. This range of patch releases includes bug fixes and dependency updates. According to the package's changelog, there are no breaking changes in this version span.Source: Package documentation
The fix is in the lockfile, but the relock also moved packages unrelated to this fix. I did not run the tests, because no runnable test suite exists.
Reviewer Notes
npm run buildto check that the Docusaurus site still builds.@babel/*packages,browserslist,caniuse-lite,js-yaml,joi,compression,nanoid,image-sizeandbrace-expansion. Skim the diff if you want the PR limited to this fix.cssescpackage dropped out of the lockfile because the new parser versions no longer depend on it.image-sizeandnode-releasesnow declare a Node >=18 engine requirement.package.jsonis unchanged.postcss-selector-parseris a transitive dependency, brought in through@docusaurus/core. The fix was a targeted relock (npm update postcss-selector-parser --package-lock-only --ignore-scripts), with no override needed.postcss-selector-parser 7.1.1 → 7.1.6 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade that includes several security fixes and bug resolutions. No breaking API changes are documented.
Key Changes:
These changes primarily enhance security and fix parsing edge cases. The updates are not expected to impact standard usage.
Source: Changelog
Breaking Change Reachability
Impact: none-detected · Confidence: medium. No usage of the changed surfaces was found in the project. The one listed item, the behavioral
Attribute.namespacechange, had its only evidence in the lockfile (package-lock.json:2059), not in project source. The changed-surface list may be incomplete, so this is not proof that nothing is affected. No code edits or mechanical fixes were needed.Reviewer Notes
npm run build) is worth running, because the parser now limits selector nesting depth and fixes how namespaces are handled in attribute selectors. Both changes could affect unusual CSS in the docs or theme.postcss-selector-parserremains on the vulnerable 6.1.2 or 7.1.1. Every 7.x copy is now 7.2.1, and the root 6.x copy is now 6.1.6. These versions are at or above the fixed releases (6.1.5 and 7.1.6).postcss-selector-parseris a transitive dependency, pulled in through Docusaurus's bundler, css-loader and cssnano packages. The fix was a targeted relock withnpm update postcss-selector-parser --package-lock-only --ignore-scripts. It changed onlypackage-lock.json. No override was needed andpackage.jsonis unchanged.postcss 8.5.8 → 8.5.23 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch upgrade within the same minor version (8.5.x). The changes between version 8.5.8 and 8.5.23 consist of bug fixes and dependency updates. For example, version 8.5.17 fixed a "Maximum call stack size exceeded" error and a prototype hijacking vulnerability. No breaking changes are documented in this range.
Source: PostCSS CHANGELOG
Postcss resolves to 8.5.32 in the lockfile, which is above the planned 8.5.23 target. The upgrade was a plain relock, with no manifest edit or override.
Reviewer Notes
npm run buildfor the Docusaurus site. No test suite exists to cover the CSS pipeline, and postcss is used at build time through@docusaurus/bundlerand the cssnano preset. The relock also moved the transitivenanoidfrom 3.3.11 to 3.3.20. That version is above all three of its listed fix versions, so it was not changed separately.npm updatealso printed a notice that install scripts forcore-jsandcore-js-purewere blocked because they are not covered byallowScripts. This is unrelated to the fix.@docusaurus/coreand@docusaurus/bundler. It was fixed with a targeted update (npm update postcss). Onlypackage-lock.jsonchanged, andpackage.jsonis untouched.proxy-addr 2.0.7 → 2.0.8 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version update. However, the specified version
2.0.8forproxy-addrcould not be found in the npm registry or the official GitHub repository. The latest published version is2.0.7. As there is no actual version change, there is no risk of breaking changes.Recommendation: Please verify the target version. The package has not been updated in several years.
Reviewer Notes
@babel/*packages,postcss,postcss-selector-parser,browserslist,caniuse-lite,js-yaml,joi,compression,image-sizeandnanoid.postcss-selector-parserno longer pulls incssesc. Skim the lockfile diff, and runnpm run build(the Docusaurus site build) before merging. Theimage-sizeandnode-releasesupdates now declare a Node 18 or newer engine, so check that CI and deploy use Node 18 or newer.proxy-addrentry at the target version.proxy-addris a transitive dependency. The fix is a targeted lockfile update (npm update proxy-addr --package-lock-only --ignore-scripts). No change was needed inpackage.json, because no override was required.proxy-addr2.0.8 is published on the registry and is its latest release. The earlier note that it could not be found was wrong.shell-quote 1.8.3 → 1.9.0 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a minor version upgrade. The changes introduce new features and do not contain any documented breaking changes.
Key Changes:
<<<(here strings) and duplicating input file descriptors in the parser.parseandquotefunctions are now available as deep imports (shell-quote/parseandshell-quote/quote).No breaking changes were identified in the release notes for this version range.
Source: Changelog
The lockfile now resolves
shell-quoteto 1.12.0, not the planned 1.9.0. That version is above both fix versions (1.8.4 and 1.9.0), so both advisories are cleared. I did not pin it to 1.9.0.Breaking Change Reachability
Impact: potential · Confidence: low
The project does not call
shell-quotedirectly. It comes in through@docusaurus/core→webpack-dev-server→launch-editor, which is the dev-server "open in editor" path. The only evidence is a suspected behavioral change inparse, found atpackage-lock.json:9786. Usage is indirect, so nothing more specific could be determined. No mechanical fix was needed or applied.Reviewer Notes
npm update shell-quotemoved many unrelated transitive packages, not justshell-quote. These include@babel/*,postcss,postcss-selector-parser,js-yaml,browserslistandjoi.cssescwas dropped from the lockfile as a result.node-releasesandimage-sizenow require Node 18 or later.npm run buildandnpm startto confirm the Docusaurus site still builds and serves.shell-quoteis a transitive dependency of Docusaurus. It was fixed with a targeted relock (npm update shell-quote --package-lock-only --ignore-scripts).package.jsonis unchanged and no override was added. The lockfile now shows 1.12.0, which is newer than the planned 1.9.0.ws 7.5.10 → 7.5.11 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a patch version upgrade from
7.5.10to7.5.11. The update addresses a high-severity Denial of Service (DoS) vulnerability. A remote attacker could send a high volume of small data fragments, causing excessive memory allocation that could lead to a process crash. This release contains the backported security fix. There are no documented breaking API changes.Source: Release notes
Reviewer Notes
package-lock.jsondiff is larger than a single-package bump, with about 248 lines added and 205 removed. The targeted relock moved other locked transitive packages too, so skim the diff. Runnpm run buildto confirm the Docusaurus site still builds. The vulnerable copy is used by the bundle analyzer, which only runs during builds and local tooling.npm update ws --package-lock-only --ignore-scripts, and onlypackage-lock.jsonchanged.wsis a transitive dependency, fixed with a targeted relock (npm update).package.jsonwas not edited and no override was added. The lockfile resolves the top-levelws(the 7.x line) to 7.5.14, which is newer than the planned 7.5.11 and above the fixed version. The copy nested underwebpack-dev-server(the 8.x line) resolves to 8.23.0, which is above the 8.21.0 fix.ws 8.20.0 → 8.21.0 · 🟢 low merge risk (Snyk breakability API) · Tests: not run
Breaking Change Summary
This is a minor version upgrade that patches a high-severity denial-of-service (DoS) vulnerability. According to the release notes, a remote attacker could force the server to consume excessive memory, leading to a crash. There are no documented API or behavioral changes. The upgrade is recommended and considered safe.
Reviewer Notes
wsfix.npm update wsre-resolved other packages in the lockfile as well. Skim the diff for unrelated version moves. Then runnpm run buildandnpm startto check that the Docusaurus build and dev server still work, sincewsis used by the dev server.wsnow resolves to 8.23.0, which is above the 8.21.0 target. The top-level copy, used by the bundle analyzer, now resolves to 7.5.14, which is above the 7.5.11 fix. The vulnerable 8.20.0 and 7.5.10 copies are gone. No build or lint was run.wsis a transitive dependency. The fix was applied as a targeted lockfile update withnpm update ws. No change topackage.jsonand no override was needed, because the parents' version ranges already allowed the fixed versions. Onlypackage-lock.jsonchanged.Fixed
25 issues ·
2 critical,
23 high
Not fixed
Show 21 issues ·
2 critical,
19 high
Also fixed
Show 9 issues ·
9 medium
Repository-wide at scan time: 87 vulnerabilities, 53 remain.
Note
Low Risk
No application source changes; risk is limited to transitive toolchain/dev-server behavior and ensuring CI uses Node 18+ after the relock.
Overview
This PR updates only
package-lock.json—package.jsonis unchanged—by re-resolving transitive dependencies to patched versions that address 25 Snyk findings (2 critical, 23 high, plus 9 medium collateral fixes).The lockfile moves a large cluster of build- and dev-server-related packages: Babel toolchain patches, postcss / postcss-selector-parser (7.x now at 7.2.1; cssesc drops out as a transitive dep), browserslist / caniuse-lite, js-yaml, joi, nanoid, compression, proxy-addr, shell-quote, ws, image-size, brace-expansion, and related pins. Several resolved versions are newer than the minimum fix (e.g. browserslist 4.29.5, shell-quote 1.12.0) because the targeted
npm updaterelocked in-range peers as well.Reviewers should treat this as a dependency hygiene / security change affecting Docusaurus build, CSS pipeline, and local dev server—not production app logic.
npm run build(and optionallynpm start) is the main validation; note image-size and node-releases now declare Node ≥18.Reviewed by Cursor Bugbot for commit 4cd85b0. Bugbot is set up for automated code reviews on this repo. Configure here.