GHSA-p99h-pfg6-qrfg: Duplicate Advisory Cross-Site Scripting Vulnerability

CRITICAL
CVSS 9.1
CWE-639 CWE-269 CWE-749
Published
Advisory Summary

GHSA-p99h-pfg6-qrfg is a CRITICAL (CVSS 9.1) cross-site scripting vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves privilege escalation in sap-xssec. Remediation is available by upgrading affected packages to version 4.1.0.

GHSA-p99h-pfg6-qrfg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-p99h-pfg6-qrfg
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Duplicate Advisory
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.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:N/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 None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-p99h-pfg6-qrfg

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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-xssec fixed: 4.1.0
pip install sap-xssec>=4.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show sap-xssec

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-p99h-pfg6-qrfg, inspect your installed packages using pip:

pip show sap-xssec

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

Note: The pip show sap-xssec command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-6mjg-37cp-42x5. This link is maintained to preserve external references. ## Original Description SAP BTP Security Services Integration Library ([Python] sap-xssec) - versions < 4.1.0, allow under certain conditions an escalation of privileges. On successful exploitation, an unauthenticated attacker can obtain arbitrary permissions within the application.

GHSA-p99h-pfg6-qrfg Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
4.1.0
Product / Package Ecosystem Affected Versions Fixed Version
sap-xssec
PyPI
< 4.1.0
4.1.0

References

Frequently Asked Questions

What is GHSA-p99h-pfg6-qrfg?
GHSA-p99h-pfg6-qrfg is a security vulnerability in Duplicate Advisory involving Privilege escalation in sap-xssec under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 4.1.0 across affected packages: sap-xssec.
What version fixes GHSA-p99h-pfg6-qrfg?
Upgrading to 4.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sap-xssec affected?
Yes, sap-xssec is affected in releases prior to 4.1.0. Upgrade your dependency to 4.1.0 or later.
What is the CVSS score of GHSA-p99h-pfg6-qrfg?
GHSA-p99h-pfg6-qrfg has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with GHSA-p99h-pfg6-qrfg?
GHSA-p99h-pfg6-qrfg is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check PyPI dependencies for GHSA-p99h-pfg6-qrfg?
Run the dependency tree command: 'pip show sap-xssec'. 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-p99h-pfg6-qrfg",
  "modified" : "2024-09-30T18:51:33Z",
  "published" : "2023-12-12T03:31:45Z",
  "withdrawn" : "2024-09-30T18:51:33Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Privilege escalation in sap-xssec",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-6mjg-37cp-42x5. This link is maintained to preserve external references.\n\n## Original Description\nSAP BTP Security Services Integration Library ([Python] sap-xssec) - versions < 4.1.0, allow under certain conditions an escalation of privileges. On successful exploitation, an unauthenticated attacker can obtain arbitrary permissions within the application.\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sap-xssec"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/SAP/cloud-pysec/security/advisories/GHSA-6mjg-37cp-42x5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50423"
  }, {
    "type" : "WEB",
    "url" : "https://blogs.sap.com/2023/12/12/unveiling-critical-security-updates-sap-btp-security-note-3411067"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/SAP/cloud-pysec"
  }, {
    "type" : "WEB",
    "url" : "https://me.sap.com/notes/3411067"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/sap-xssec"
  }, {
    "type" : "WEB",
    "url" : "https://www.sap.com/documents/2022/02/fa865ea4-167e-0010-bca6-c68f7e60039b.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269", "CWE-639", "CWE-749" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-15T03:18:45Z",
    "nvd_published_at" : "2023-12-12T02:15:08Z"
  }
}