CVE-2025-24876: @sap/approuter Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-cpfx-964w-4jvp
CVSS 8.1
CWE-601
Published
Advisory Summary

CVE-2025-24876 is a HIGH (CVSS 8.1) authentication bypass vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting @sap/approuter libraries in the npm ecosystem. The issue involves authentication bypass in @sap/approuter. Remediation is available by upgrading affected packages to version 16.7.2.

CVE-2025-24876 at a Glance

CVE Identifier CVE-2025-24876
GHSA Identifier GHSA-cpfx-964w-4jvp
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product @sap/approuter
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-24876

To remediate this vulnerability, upgrade all affected @sap/approuter 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/approuter fixed: 16.7.2
npm install @sap/approuter@16.7.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/approuter

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-24876, inspect your project dependencies using npm:

npm ls @sap/approuter

Analyze the terminal output to locate any version of @sap/approuter in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.7.2), your application is affected.

Note: The npm ls @sap/approuter 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In @sap/approuter, 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

The SAP Approuter Node.js package version v16.7.1 and before is vulnerable to Authentication bypass. When trading an authorization code, an attacker can steal the session of the victim by injecting malicious payload, causing High impact on confidentiality and integrity of the application.

CVE-2025-24876 Affected @sap/approuter Versions

1 component(s)
Fixed Versions:
16.7.2
Product / Package Ecosystem Affected Versions Fixed Version
@sap/approuter
npm
≥ 2.6.1
< 16.7.2
16.7.2

References

Frequently Asked Questions

What is CVE-2025-24876?
CVE-2025-24876 is a security vulnerability in @sap/approuter involving Authentication bypass in @sap/approuter under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which @sap/approuter versions are affected?
Affected versions include releases prior to 16.7.2 across affected packages: @sap/approuter.
What version fixes CVE-2025-24876?
Upgrading to 16.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @sap/approuter affected?
Yes, @sap/approuter is affected in releases prior to 16.7.2. Upgrade your dependency to 16.7.2 or later.
What is the CVSS score of CVE-2025-24876?
CVE-2025-24876 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-24876?
CVE-2025-24876 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check npm dependencies for CVE-2025-24876?
Run the dependency tree command: 'npm ls @sap/approuter'. 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-cpfx-964w-4jvp",
  "modified" : "2025-02-11T16:35:25Z",
  "published" : "2025-02-11T03:30:56Z",
  "aliases" : [ "CVE-2025-24876" ],
  "summary" : "Authentication bypass in @sap/approuter",
  "details" : "The SAP Approuter Node.js package version v16.7.1 and before is vulnerable to Authentication bypass. When trading an authorization code, an attacker can steal the session of the victim by injecting malicious payload, causing High impact on confidentiality and integrity of the application.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@sap/approuter"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.1"
      }, {
        "fixed" : "16.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24876"
  }, {
    "type" : "WEB",
    "url" : "https://me.sap.com/notes/3567974"
  }, {
    "type" : "WEB",
    "url" : "https://support.sap.com/en/my-support/knowledge-base/security-notes-news/february-2025.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/@sap/approuter?activeTab=versions"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-11T16:35:25Z",
    "nvd_published_at" : "2025-02-11T01:15:11Z"
  }
}