{"id":"CVE-2026-15895","aliases":["GHSA-wcx4-wpfv-mc5c"],"title":"jsii-diff: Command Injection via npm: package argument","summary":"jsii-diff: Command Injection via npm: package argument","severity":"high","cvss":7.8,"cwe":["CWE-78"],"vendor":"jsii-diff","product":"jsii-diff","ecosystem":"npm","affected":["jsii-diff < 1.131.0"],"patched":["jsii-diff 1.131.0"],"published":"2026-08-07","updated":"2026-08-07","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-wcx4-wpfv-mc5c","references":[{"url":"https://github.com/aws/jsii/security/advisories/GHSA-wcx4-wpfv-mc5c"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-15895"},{"url":"https://aws.amazon.com/security/security-bulletins/2026-057-aws"},{"url":"https://github.com/aws/jsii/releases/tag/v1.131.0"},{"url":"https://github.com/advisories/GHSA-wcx4-wpfv-mc5c"}],"tags":["ghsa","npm"],"epss":0.01081,"epssPercentile":0.63664,"ingestedAt":"2026-08-07T19:16:20.497Z","slug":"CVE-2026-15895","body":"## Overview\n\n## Summary\n\njsii-diff is a command line tool to compare the API differences between two jsii assemblies, and report errors if there are backwards-incompatible changes to the API. An issue exists where specially formatted command line arguments can be used to execute shell commands via this tool.\n\n## Impact\njsii-diff supports downloading packages to compare directly from NPM, so that you can compare a proposed candidate version of your jsii package with an already-published version, by passing an argument that looks like `npm:<package-specifier>`. For example:\n\n```\njsii-diff npm:my-package@latest .\n```\n\nBy injecting a `;` into the `package-specifier` part of that command, jsii-diff can be tricked into running shell commands. For example:\n\n```\njsii-diff \"npm:lodash; touch /tmp/123\" .\n```\n\nThis allows anyone that can control the command-line arguments to jsii-diff to run arbitrary commands with the same permissions as the jsii-diff command itself.\n\n## Patches\nThis issue has been addressed in jsii-diff version 1.131.0. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.\n\n## Workarounds\nIf you are unable to update, make sure only trusted actors can control the arguments passed to jsii-diff.\n\n## References\nIf you have any questions or comments about this advisory, AWS asks that you contact AWS Security via the [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n## Affected packages\n\n- `jsii-diff < 1.131.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `jsii-diff 1.131.0`","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}