{"id":"CVE-2023-40024","published":"2023-08-14T19:53:24Z","modified":"2024-10-02T20:36:40Z","title":"Reflected Cross-Site Scripting (XSS) in scancode.io license endpoint","vendor":"nexB","product":"scancode.io","tier":"tail","description":{"text":"ScanCode.io is a server to script and automate software composition analysis pipelines. In the `/license/` endpoint, the detailed view key is not properly validated and sanitized, which can result in a potential cross-site scripting (XSS) vulnerability when attempting to access a detailed license view that does not exist. Attackers can exploit this vulnerability to inject malicious scripts into the response generated by the `license_details_view` function. When unsuspecting users visit the page, their browsers will execute the injected scripts, leading to unauthorized actions, session hijacking, or stealing sensitive information. This issue has been addressed in release `32.5.2`. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00534,"percentile":0.38551,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/nexB/scancode.io/security/advisories/GHSA-6xcx-gx7r-rccj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nexB/scancode.io/blob/dd7769fbc97c84545579cebf1dc4838214098a11/CHANGELOG.rst#v3252-2023-08-14","tags":["x_refsource_MISC"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":7.71},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"nexb","affectedVersions":[{"vendor":"nexB","product":"scancode.io","versions":["< 32.5.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-02T20:29:40.786513Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"scancodeio","vulnerableRanges":["<32.5.2"],"patched":["32.5.2"],"from":["GHSA-6xcx-gx7r-rccj","PYSEC-2026-1905"],"provenance":"source"}],"summary":{"text":"A reflected cross-site scripting flaw in the /license/ endpoint of nexB's scancode.io, where the detailed license view key is not properly validated or sanitised when a requested license view does not exist. An attacker can inject a malicious script into the response generated by the license_details_view function by getting a user to visit a crafted link over the network, without needing authentication, and the injected script then runs in the victim's browser, enabling actions such as session hijacking or theft of sensitive information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:52Z"},"euvd":{"id":"EUVD-2023-2227","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-39523","published":"2023-08-07","fixed":"32.5.1","kev":false,"link":{"from":"CVE-2023-39523","to":"CVE-2023-40024","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:scancodeio","fromFixed":"32.5.1","toFixed":"32.5.2","daysApart":7}]}},{"cve":"CVE-2023-40024","published":"2023-08-14","fixed":"32.5.2","kev":false}],"package":"PyPI:scancodeio"}}