CVE-2023-50423: Sap xssec Cross-Site Scripting Vulnerability
CRITICALCVE-2023-50423 is a CRITICAL (CVSS 9.1) cross-site scripting vulnerability (CWE-269: Improper Privilege Management) affecting Sap xssec libraries in the PyPI ecosystem. The issue involves improper privilege management in sap-xssec. Remediation is available by upgrading affected packages to version 4.1.0.
CVE-2023-50423 at a Glance
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).
How to Fix CVE-2023-50423
To remediate this vulnerability, upgrade all affected Sap xssec dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install sap-xssec>=4.1.0
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 CVE-2023-50423, inspect your installed packages using pip:
pip show sap-xssec
Analyze the terminal output to locate any version of Sap xssec 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Sap xssec, 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
CVE-2023-50423 Affected Sap xssec Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sap-xssec
|
PyPI |
< 4.1.0
|
4.1.0
|
References
Frequently Asked Questions
What is CVE-2023-50423?
Which Sap xssec versions are affected?
What version fixes CVE-2023-50423?
Is sap-xssec affected?
What is the CVSS score of CVE-2023-50423?
What CWE is associated with CVE-2023-50423?
How can I check PyPI dependencies for CVE-2023-50423?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6mjg-37cp-42x5",
"modified" : "2024-09-30T19:44:11Z",
"published" : "2023-12-13T13:34:36Z",
"aliases" : [ "CVE-2023-50423" ],
"summary" : "Improper Privilege Management in sap-xssec",
"details" : "### Impact\n\nSAP BTP Security Services Integration Library ([Python] sap-xssec) allows under certain conditions an escalation of privileges. On successful exploitation, an unauthenticated attacker can obtain arbitrary permissions within the application.\n\n### Patches\nUpgrade to patched version >= 4.1.0\nWe always recommend to upgrade to the latest released version.\n\n### Workarounds\nNo workarounds\n\n### References\nhttps://www.cve.org/CVERecord?id=CVE-2023-50423\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"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA: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://github.com/SAP/cloud-pysec/commit/d90c9e0733fa9af68bd8ea0b1cf023cf482163ef"
}, {
"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://github.com/pypa/advisory-database/tree/main/vulns/sap-xssec/PYSEC-2023-261.yaml"
}, {
"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" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-13T13:34:36Z",
"nvd_published_at" : null
}
}