{"id":"CVE-2026-15895","aliases":["CVE-2026-15895","GHSA-wcx4-wpfv-mc5c"],"related":[],"kind":"vulnerability","state":"published","title":"OS command injection in jsii-diff in AWS jsii","summary":"OS command injection in the npm package loading component in AWS jsii-diff before 1.131.0 might allow context-dependent attackers to execute arbitrary commands via crafted package specifiers passed to the npm: source argument.\n\n\n\nTo mitigate this issue, users should upgrade to jsii-diff v1.131.0 or later.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OS command injection in the npm package loading component in AWS jsii-diff before 1.131.0 might allow context-dependent attackers to execute arbitrary commands via crafted package specifiers passed to the npm: source argument.\n\n\n\nTo mitigate this issue, users should upgrade to jsii-diff v1.131.0 or later.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Inyección de comandos del sistema operativo en el componente de carga de paquetes npm en AWS jsii-diff anterior a 1.131.0 podría permitir a atacantes dependientes del contexto ejecutar comandos arbitrarios a través de especificadores de paquete manipulados pasados al argumento npm: source.\n\nPara mitigar este problema, los usuarios deberían actualizar a jsii-diff v1.131.0 o posterior.","source":"nvd"}],"published":"2026-07-15T19:05:30.204Z","modified":"2026-10-24T21:10:00.130Z","severity":{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.4,"rating":"HIGH"},{"scorer":"AMZN","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"1.131.0","status":"affected"}],"vendor":"AWS","product":"jsii","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.131.0"}],"ecosystem":"npm","package":"jsii-diff","purl":"pkg:npm/jsii-diff","source":"ghsa"}],"references":[{"url":"https://github.com/aws/jsii/releases/tag/v1.131.0","tags":["patch","release-notes","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-057-aws/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/aws/jsii/security/advisories/GHSA-wcx4-wpfv-mc5c","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-15895","tags":["advisory"],"sources":["ghsa"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-057-aws","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/aws/jsii","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"AMZN","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-15T19:21:22.622Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-15895","url":"https://www.cve.org/CVERecord?id=CVE-2026-15895","licence":"CVE Terms of Use","modified":"2026-07-15T19:21:30.087Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wcx4-wpfv-mc5c","url":"https://github.com/advisories/GHSA-wcx4-wpfv-mc5c","licence":"CC-BY-4.0","modified":"2026-08-07T18:41:00.528Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-15895","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-15895","licence":"Public domain","modified":"2026-10-24T21:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:28.328Z","epss":{"score":0.01081,"percentile":0.64727,"date":"2026-11-30T12:00:22.000Z"}}