CVE-2026-15895: OS Command Injection in AWS jsii-diff CLI
Vulnerability ID: CVE-2026-15895
CVSS Score: 8.4
Published: 2026-08-07
An OS command injection vulnerability exists in the npm package loading component of the jsii-diff CLI tool within the AWS jsii framework. Prior to version 1.131.0, when parsing package specifiers prefixed with npm:, the tool concatenated user-controlled inputs directly into a shell execution string via child_process.exec. This allows attackers to execute arbitrary shell commands under the context of the running Node.js process.
TL;DR
Unsanitized input interpolation in jsii-diff's NPM package downloader allows local or pipeline-integrated attackers to execute arbitrary shell commands via crafted package names prefixed with npm:.
⚠️ Exploit Status: POC
Technical Details
- CWE ID: CWE-78
- Attack Vector: Local (CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A)
- CVSS Score: 8.4
- EPSS Score: 0.0063
- Exploit Status: poc
- KEV Status: Not Listed
Affected Systems
- AWS jsii-diff (< 1.131.0)
-
jsii-diff: < 1.131.0 (Fixed in:
1.131.0)
Code Analysis
Commit: 9f42f27
Fix command injection in npm source parsing within jsii-diff utility.
Exploit Details
- Advisory: Command injection payload demonstration in security advisory details.
Mitigation Strategies
- Upgrade jsii-diff to version 1.131.0 or later.
- Validate all package-name parameters against a strict alphanumeric allowlist prior to execution.
- Incorporate --ignore-scripts in npm configurations to prevent remote package lifecycle execution.
Remediation Steps:
- Identify any global or local installations of jsii-diff using
npm list -g jsii-diffor inspecting package.json. - Update global instances via
npm install -g jsii-diff@latest. - Update project dependencies to ensure
jsii-diffversion >= 1.131.0 is used. - Verify the installation by running
jsii-diff --version.
References
- NVD - CVE-2026-15895
- CVE Authority Record
- AWS Security Bulletin
- GitHub Release Notes
- Remediation Patch Commit
- AWS jsii-diff Release Commit
- GitHub Advisory Database
Read the full report for CVE-2026-15895 on our website for more details including interactive diagrams and full exploit analysis.
Top comments (0)