GHSA-r2vw-jgq9-jqx2: @sap cloud sdk/core Improper Authorization Vulnerability

HIGH
CWE-285
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-r2vw-jgq9-jqx2
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-285: Improper Authorization
Affected Product @sap cloud sdk/core
Package Ecosystem npm
Published Date
Last Updated

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.

@sap-cloud-sdk/core fixed: 1.21.2
npm install @sap-cloud-sdk/core@1.21.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 @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

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.

GHSA-r2vw-jgq9-jqx2 Affected @sap cloud sdk/core Versions

1 component(s)
Fixed Versions:
1.21.2
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?
GHSA-r2vw-jgq9-jqx2 is a security vulnerability in @sap cloud sdk/core involving Improper Authorization in @sap-cloud-sdk/core under CWE-285: Improper Authorization.
Which @sap cloud sdk/core versions are affected?
Affected versions include releases prior to 1.21.2 across affected packages: @sap-cloud-sdk/core.
What version fixes GHSA-r2vw-jgq9-jqx2?
Upgrading to 1.21.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @sap-cloud-sdk/core affected?
Yes, @sap-cloud-sdk/core is affected in releases prior to 1.21.2. Upgrade your dependency to 1.21.2 or later.
What CWE is associated with GHSA-r2vw-jgq9-jqx2?
GHSA-r2vw-jgq9-jqx2 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for GHSA-r2vw-jgq9-jqx2?
Run the dependency tree command: 'npm ls @sap-cloud-sdk/core'. 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-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
  }
}