# CVE-2026-15895: AWS jsii-diff OS command injection in npm package loading

Source: https://junglewise.ai/threats/cve-2026-15895-aws-jsii-diff-os-command-injection-in-npm-package-loading  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-15. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-15895 · Severity: high · CVSS 7.8 · Published 2026-07-15

AWS jsii is a framework for defining cloud infrastructure using TypeScript. The jsii-diff tool, used to compare infrastructure definitions, contains a command injection vulnerability that allows attackers to execute arbitrary system commands. An attacker exploiting this flaw could gain code execution and potentially compromise systems using jsii for infrastructure as code, leading to unauthorized access to cloud resources and configuration data.

Technologies: [Amazon AWS](https://junglewise.ai/threats/technologies/aws). Vendors: [Amazon](https://junglewise.ai/threats/vendors/amazon), [Amazon Web Services](https://junglewise.ai/threats/vendors/amazon-web-services), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-15895 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-15895 being exploited in the wild.

**How severe is CVE-2026-15895?** High severity, with a CVSS score of 7.8, published 15 July 2026.

**Which products and versions are affected?** Amazon Web Services Jsii-Diff < 1.131.0; jsii-diff (npm) SEMVER:introduced=0,fixed=1.131.0.

**Is there a fix for CVE-2026-15895?** Yes. jsii-diff (npm): upgrade to 1.131.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-15895 attacked?** It is attacked over the network or with local access.

**Am I affected by CVE-2026-15895?** Check whether you run Amazon AWS, Amazon Web Services Jsii-Diff or jsii-diff (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- jsii-diff (npm): upgrade to 1.131.0 or later

  ```sh
  npm install jsii-diff@1.131.0
  ```


## Technical details

This vulnerability is a classic OS command injection flaw located in the jsii-diff component of AWS jsii. The vulnerability stems from insufficient input sanitization when processing command-line arguments or file inputs passed to system commands. An attacker with the ability to provide input to jsii-diff (e.g., via a specially crafted diff file or command-line parameter) can inject shell metacharacters to execute arbitrary commands. The attack requires the attacker to have the ability to invoke jsii-diff with malicious input, which could occur in CI/CD pipelines, local development environments, or infrastructure deployment workflows. Exploitation results in arbitrary code execution with the privileges of the jsii process. AWS has published a security bulletin addressing this issue; users should update to patched versions as recommended.

## Affected products

- AWS jsii <UNKNOWN>

## Identifiers

- CVE-2026-15895
- GHSA-wcx4-wpfv-mc5c

## Timeline

- 2026-09-22: disclosed

## References

- [https://aws.amazon.com/security/security-bulletins/rss/2026-057-aws/](https://aws.amazon.com/security/security-bulletins/rss/2026-057-aws/)

## Related threats

- [An untrusted search path issue in Aurora PostgreSQL dialect detection in the AWS Advanced Go Wrapper from release 2026-04-06 (awssql/v2.0.0)](https://junglewise.ai/threats/cve-2026-126793-privilege-escalation-in-aurora-postgresql-dialect-detection-in)
- [AWS SDK for pandas EMR unverified bucket ownership](https://junglewise.ai/threats/cve-2026-127119-unverified-ownership-of-the-default-emr-cluster-log-location-in)
- [Amazon mcp-gateway-registry server-side request forgery in registration API](https://junglewise.ai/threats/cve-2026-125926-server-side-request-forgery-in-the-server-registration-and)
- [Amazon mcp-gateway-registry authorization bypass in management API](https://junglewise.ai/threats/cve-2026-100307-missing-authorization-on-the-external-management-api-in-mcp)
- [AWS Kiro CLI incorrect default permissions on session files](https://junglewise.ai/threats/cve-2026-124848-incorrect-default-permissions-on-session-transcripts-and-prompt)
