fix: resolve npm audit vulnerabilities - #397
Open
hong6316 wants to merge 3 commits into
Open
Conversation
hong6316
force-pushed
the
feature/npm-audit-vulnerabilities
branch
from
August 11, 2026 07:02
79fc56b to
c7b9d3d
Compare
Update direct dependencies to fix security vulnerabilities: - less: ^4.6.7 → ^4.8.1 (fixes image-size ICNS/JXL/HEIF DoS CVEs) - node-polyfill-webpack-plugin: 4.0.0 → 4.1.0 (migrates from deprecated crypto-browserify path) - postcss: ^8.5.16 → ^8.5.26 (fixes sourceMappingURL path traversal CVEs) - tar: ^7.5.19 → ^7.5.22 (fixes stack-overflow DoS via crafted long-path tar) Add npm overrides: - uuid: >=11.1.1 (fixes buffer bounds check in v3/v5/v6 via sockjs/webpack-dev-server) Remaining unresolved vulnerabilities are caused by sub-module dependencies (@enact/dev-utils and eslint-config-enact) that ship their own npm-shrinkwrap.json, preventing root-level overrides from taking effect: - brace-expansion (via eslint-config-enact/eslint nested deps) - elliptic (via node-stdlib-browser/crypto-browserify - no upstream fix available) - fast-uri (via @enact/dev-utils nested ajv) - js-yaml (via @enact/dev-utils and eslint-config-enact nested deps) Co-Authored-By: Claude <noreply@anthropic.com>
hong6316
force-pushed
the
feature/npm-audit-vulnerabilities
branch
from
August 13, 2026 07:19
c7b9d3d to
02b04f5
Compare
Mark globals as devDependency in npm-shrinkwrap.json. Co-Authored-By: Claude <noreply@anthropic.com>
Refresh npm-shrinkwrap.json to reflect optimized package tree deduplication from a clean install on Node 20.20.2. Co-Authored-By: Claude <noreply@anthropic.com>
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
Resolve npm audit vulnerabilities by updating direct dependencies and adding overrides.
Direct Dependency Updates
lessnode-polyfill-webpack-pluginpostcsstarOverrides Added
uuidPreviously Resolved (already in shrinkwrap via npm audit fix)
body-parser→ 1.20.6 (DoS via invalid limit)nanoid→ 3.3.18 (infinite loop with negative/zero size)svgo→ 4.0.2 (removeScripts plugin bypass)brace-expansion(top-level) → 1.1.18/2.1.4/5.0.9fast-uri(top-level) → 3.1.5+js-yaml(top-level) → 4.3.1+Unresolved Sub-module Vulnerabilities
The following vulnerabilities remain because
@enact/dev-utilsandeslint-config-enactship with their ownnpm-shrinkwrap.json, preventing root-level overrides from affecting their nested dependencies:These will be resolved when
@enact/dev-utilsandeslint-config-enactpublish new versions with updated shrinkwraps.Verification
npm run lint -- -- --report-unused-disable-directives --max-warnings 0passesnpm-shrinkwrap.jsonpreserved and updated🤖 Generated with Claude Code