GHSA-jpvj-wpmj-h7rv: @cap js/openapi Supply Chain Compromise Vulnerability
CRITICALGHSA-jpvj-wpmj-h7rv is a CRITICAL (CVSS 9.6) supply chain compromise vulnerability (CWE-506: Embedded Malicious Code) affecting @cap js/openapi libraries in the npm ecosystem. The issue involves supply chain compromise via malicious @cap-js/openapi. Remediation is available by upgrading affected packages to version 1.4.2.
GHSA-jpvj-wpmj-h7rv at a Glance
Security Impact
CVSS: 9.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).
How to Fix GHSA-jpvj-wpmj-h7rv
To remediate this vulnerability, upgrade all affected @cap js/openapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @cap-js/openapi@1.4.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @cap-js/openapi
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-jpvj-wpmj-h7rv, inspect your project dependencies using npm:
npm ls @cap-js/openapi
Analyze the terminal output to locate any version of @cap js/openapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.2), your application is affected.
Note: The npm ls @cap-js/openapi command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In @cap js/openapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-jpvj-wpmj-h7rv Affected @cap js/openapi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@cap-js/openapi
|
npm |
≥ 1.4.1
< 1.4.2
All 1 versions
1.4.1
|
1.4.2
|
References
Frequently Asked Questions
What is GHSA-jpvj-wpmj-h7rv?
Which @cap js/openapi versions are affected?
What version fixes GHSA-jpvj-wpmj-h7rv?
Is @cap-js/openapi affected?
What is the CVSS score of GHSA-jpvj-wpmj-h7rv?
What CWE is associated with GHSA-jpvj-wpmj-h7rv?
How can I check npm dependencies for GHSA-jpvj-wpmj-h7rv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jpvj-wpmj-h7rv",
"modified" : "2026-06-04T19:37:04Z",
"published" : "2026-06-04T19:37:04Z",
"aliases" : [ ],
"summary" : "Supply chain compromise via malicious @cap-js/openapi",
"details" : "### Impact\n\nOn May 19, 2026, a compromised version of @cap-js/openapi@1.4.1 was published.\nThe malicious packages harvested credentials and attempted self-propagation.\nIf a compromised version was installed, all credentials accessible on that machine (npm tokens, cloud provider credentials, SSH keys, GitHub PATs) should be considered compromised.\n\n### Patches\n\nUpgrade to @cap-js/openapi >= 1.4.2\nIf the compromised version was ever installed, rotate all affected credentials.\n\n### Workarounds\nNo workarounds.\n\n### References\n\n- [SAP Note 3747787](https://me.sap.com/notes/3747787)\n- [Developer FAQ](https://www.sap.com/documents/2026/05/8203a8b9-4d7f-0010-bca6-c68f7e60039b.html)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@cap-js/openapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4.1"
}, {
"fixed" : "1.4.2"
} ]
} ],
"versions" : [ "1.4.1" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cap-js/openapi/security/advisories/GHSA-jpvj-wpmj-h7rv"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cap-js/openapi"
}, {
"type" : "WEB",
"url" : "https://me.sap.com/notes/3747787"
}, {
"type" : "WEB",
"url" : "https://www.sap.com/documents/2026/05/8203a8b9-4d7f-0010-bca6-c68f7e60039b.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-506" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-04T19:37:04Z",
"nvd_published_at" : null
}
}