GHSA-r2vw-jgq9-jqx2: @sap cloud sdk/core Improper Authorization Vulnerability
HIGHGHSA-r2vw-jgq9-jqx2 is a HIGH improper authorization vulnerability (CWE-285: Improper Authorization) affecting @sap cloud sdk/core libraries in the npm ecosystem. The issue involves improper authorization in @sap-cloud-sdk/core. Remediation is available by upgrading affected packages to version 1.21.2.
GHSA-r2vw-jgq9-jqx2 at a Glance
How to Fix GHSA-r2vw-jgq9-jqx2
To remediate this vulnerability, upgrade all affected @sap cloud sdk/core 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 @sap-cloud-sdk/core@1.21.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @sap-cloud-sdk/core
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-r2vw-jgq9-jqx2, inspect your project dependencies using npm:
npm ls @sap-cloud-sdk/core
Analyze the terminal output to locate any version of @sap cloud sdk/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.21.2), your application is affected.
Note: The npm ls @sap-cloud-sdk/core 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In @sap cloud sdk/core, 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-r2vw-jgq9-jqx2 Affected @sap cloud sdk/core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@sap-cloud-sdk/core
|
npm |
≥ 1.19.0
< 1.21.2
|
1.21.2
|
References
Frequently Asked Questions
What is GHSA-r2vw-jgq9-jqx2?
Which @sap cloud sdk/core versions are affected?
What version fixes GHSA-r2vw-jgq9-jqx2?
Is @sap-cloud-sdk/core affected?
What CWE is associated with GHSA-r2vw-jgq9-jqx2?
How can I check npm dependencies for GHSA-r2vw-jgq9-jqx2?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r2vw-jgq9-jqx2",
"modified" : "2020-08-31T19:02:48Z",
"published" : "2020-09-03T15:54:11Z",
"aliases" : [ ],
"summary" : "Improper Authorization in @sap-cloud-sdk/core",
"details" : "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.\n\n\n## Recommendation\n\nUpgrade to version 1.21.2 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@sap-cloud-sdk/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.19.0"
}, {
"fixed" : "1.21.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1540"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T19:02:48Z",
"nvd_published_at" : null
}
}