# GHSA-JPVJ-WPMJ-H7RV: Supply chain compromise via malicious @cap-js/openapi

- Database: GitHub
- Severity: critical (stated by ghsa, no CVSS score)
- Published: 2026-06-04
- Modified: 2026-09-10

## Affected versions

- @cap-js/openapi (npm): from 1.4.1, fixed in 1.4.2

## Description

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

## References

- https://github.com/cap-js/openapi/security/advisories/GHSA-jpvj-wpmj-h7rv
- https://github.com/cap-js/openapi
- https://me.sap.com/notes/3747787
- https://www.sap.com/documents/2026/05/8203a8b9-4d7f-0010-bca6-c68f7e60039b.html

Page: https://cve.now/GHSA-JPVJ-WPMJ-H7RV

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
