Published npm package includes www-v2/ directory with stale package-lock.json triggering CVE false positives
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- release
Research direction
Start by reading the package.json publication settings and checking whether a .npmignore file exists. Inspect the generated npm tarball to confirm that www-v2/ and its stale package-lock.json are excluded while dist/, lib/, and top-level JavaScript files remain available.
Written by the indexing model from the issue text.
Description
Problem
The published npm package includes the www-v2/ directory which contains the project's demo website source code. This directory includes a package-lock.json that references next@12.1.6.
Container vulnerability scanners (e.g. AWS ECR Enhanced Scanning / Amazon Inspector) scan all lock files in the image and flag this as CVE-2025-29927 (critical severity — Next.js middleware authorization bypass).
This is a false positive — the next@12.1.6 is not installed, not executable, and not part of any consumer's dependency tree. It's just a string in a lock file that happens to ship with the package.
Impact
Consumers using third-party-web (typically via lighthouse / @lhci/cli) get critical vulnerability alerts in their container scanning pipelines for code that has nothing to do with their application.
Suggested Fix
Add www-v2/ to .npmignore (or use the files field in package.json) so the demo website source isn't included in the published tarball. The actual package exports (dist/, lib/, top-level .js files) would remain unaffected.
Workaround
We currently rm -rf node_modules/third-party-web/www-v2 in our Dockerfile after install.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 112
- Avg merge
- 22h 26m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from patrickhulce/third-party-web
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
patrickhulce/third-party-web#240 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
patrickhulce/third-party-web#239 ·
-
enhancement help wanted
Difficulty 5/5 Over a week Newbie friendliness 25/100
patrickhulce/third-party-web#217 · 1 comment · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
patrickhulce/third-party-web#213 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
patrickhulce/third-party-web#212 · 2 comments ·
All issues in patrickhulce/third-party-web
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100