# CVE-2023-40024: Reflected Cross-Site Scripting (XSS) in scancode.io license endpoint

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-14T19:53:24.808Z
- Modified: 2026-09-10T03:49:57.536Z
- Also known as: GHSA-6xcx-gx7r-rccj, PYSEC-2026-1905
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nexB scancode.io: < 32.5.2; before 32.5.2; up to 32.5.1
- scancodeio (PyPI): before 32.5.2

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/nexB/scancode.io/security/advisories/GHSA-6xcx-gx7r-rccj> (exploit, vendor-advisory, web)
- <https://github.com/nexB/scancode.io/blob/dd7769fbc97c84545579cebf1dc4838214098a11/CHANGELOG.rst#v3252-2023-08-14> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40024> (advisory)
- <https://github.com/nexB/scancode.io> (package)
- <https://github.com/nexB/scancode.io/releases/tag/v32.5.2> (web)
- <https://pypi.org/project/scancodeio> (package)
- <https://github.com/advisories/GHSA-6xcx-gx7r-rccj> (advisory)

## Sources

- CVE List: [CVE-2023-40024](https://www.cve.org/CVERecord?id=CVE-2023-40024), CVE Terms of Use, modified 2024-10-02
- GitHub Advisory Database: [GHSA-6xcx-gx7r-rccj](https://github.com/advisories/GHSA-6xcx-gx7r-rccj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-40024](https://nvd.nist.gov/vuln/detail/CVE-2023-40024), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1905](https://osv.dev/vulnerability/PYSEC-2026-1905), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-40024 · Whole record: https://cve.day/CVE-2023-40024.json · Rebuilt by cve.day 2026-11-25T22:58:27.114Z
