fix: upgrade shell-quote to 1.8.4 (CVE-2026-9277) - #407
Conversation
❌ Deploy Preview for contribute-cncf-io failed. Why did it fail? →
|
There was a problem hiding this comment.
Pull request overview
Updates the vulnerable transitive shell-quote dependency, though the implementation uses 1.9.0 rather than the documented 1.8.4.
Changes:
- Adds an npm override for
shell-quote. - Updates the lockfile to resolve version 1.9.0.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
package.json |
Adds the dependency override. |
package-lock.json |
Locks shell-quote to 1.9.0. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| "homepage": "https://contribute-cncf-io.netlify.app/" | ||
| "homepage": "https://contribute-cncf-io.netlify.app/", | ||
| "overrides": { | ||
| "shell-quote": "1.9.0" |
|
@anupamme Sign the commit with DCO please. :) |
Automated dependency upgrade by OrbisAI Security Signed-off-by: Anupam Mediratta <mediratta@gmail.com>
3f24bae to
ae04224
Compare
done. |
|
✅ Review Feedback Addressed I've automatically addressed 1 review comment(s): The PR title and description state this upgrades shell-quote to 1.8.4 (the minimal patch that fixes CVE-2026-9277), but the actual implementation pins 1.9.0, which includes additional type and quoting/parsing changes unrelated to the CVE. Per the reviewer's feedback, we align the implementation to the documented intent by pinning 1.8.4 in:
Files modified:
The changes have been pushed to this PR branch. Please review! |
Summary
Upgrade shell-quote from 1.8.3 to 1.8.4 to fix CVE-2026-9277.
Vulnerability
CVE-2026-9277package-lock.json(dependency:shell-quote)Description: shell-quote: shell-quote: Arbitrary code execution via command injection due to unescaped line terminators
Evidence
Scanner confirmation: trivy rule
CVE-2026-9277flagged this pattern.Changes
package.jsonpackage-lock.jsonBehavior Preservation
The change is scoped to 2 files on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.
This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.
Automated security fix by OrbisAI Security