Improper Authorization in @sap-cloud-sdk/coreGHSA-r2vw-jgq9-jqx2
GHSA-r2vw-jgq9-jqx2 is a security vulnerability in @sap-cloud-sdk/core. A fix is available for @sap-cloud-sdk/core — see the affected versions and patch details below.
Real-World Exposure
@sap-cloud-sdk/coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.
Description
Affected versions of @sap-cloud-sdk/core do not properly validate JWTs. The verifyJwt() function does not properly validate the URL from where the public verification key for the JWT can be downloaded. Any URL was trusted which makes it possible to provide a URL belonging to a manipulated JWT.
Recommendation
Upgrade to version 1.21.2 or later.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @sap-cloud-sdk/core | ≥ 1.19.0&&< 1.21.2 | 1.21.2npm install @sap-cloud-sdk/core@1.21.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @sap-cloud-sdk/core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update @sap-cloud-sdk/core to 1.21.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-r2vw-jgq9-jqx2 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-r2vw-jgq9-jqx2 in your dependencies?
Find it across npm, including transitive dependencies.