GHSA-jpvj-wpmj-h7rv: @cap js/openapi Supply Chain Compromise Vulnerability

CRITICAL
CVSS 9.6
CWE-506
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-jpvj-wpmj-h7rv
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-506: Embedded Malicious Code
Affected Product @cap js/openapi
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

@cap-js/openapi fixed: 1.4.2
npm install @cap-js/openapi@1.4.2
Verify Direct and Transitive Dependencies

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

### Impact On May 19, 2026, a compromised version of @cap-js/openapi@1.4.1 was published. The malicious packages harvested credentials and attempted self-propagation. If a compromised version was installed, all credentials accessible on that machine (npm tokens, cloud provider credentials, SSH keys, GitHub PATs) should be considered compromised. ### Patches Upgrade to @cap-js/openapi >= 1.4.2 If the compromised version was ever installed, rotate all affected credentials. ### Workarounds No workarounds. ### References - [SAP Note 3747787](https://me.sap.com/notes/3747787) - [Developer FAQ](https://www.sap.com/documents/2026/05/8203a8b9-4d7f-0010-bca6-c68f7e60039b.html)

GHSA-jpvj-wpmj-h7rv Affected @cap js/openapi Versions

1 component(s)
Fixed Versions:
1.4.2
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?
GHSA-jpvj-wpmj-h7rv is a security vulnerability in @cap js/openapi involving Supply chain compromise via malicious @cap-js/openapi under CWE-506: Embedded Malicious Code.
Which @cap js/openapi versions are affected?
Affected versions include releases prior to 1.4.2 across affected packages: @cap-js/openapi.
What version fixes GHSA-jpvj-wpmj-h7rv?
Upgrading to 1.4.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @cap-js/openapi affected?
Yes, @cap-js/openapi is affected in releases prior to 1.4.2. Upgrade your dependency to 1.4.2 or later.
What is the CVSS score of GHSA-jpvj-wpmj-h7rv?
GHSA-jpvj-wpmj-h7rv has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-jpvj-wpmj-h7rv?
GHSA-jpvj-wpmj-h7rv is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check npm dependencies for GHSA-jpvj-wpmj-h7rv?
Run the dependency tree command: 'npm ls @cap-js/openapi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}