# CVE-2024-38526: pdoc embeds link to malicious CDN if math mode is enabled

- Severity: None 0.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L/E:H/RL:O/RC:C/MC:N/MI:N/MA: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): 4.91%, higher than 92% of CVEs (2026-11-30)
- Published: 2024-06-25T22:23:30.000Z
- Modified: 2026-07-07T17:57:02.093Z
- Also known as: GHSA-5vgj-ggm4-fg62, PYSEC-2026-1764
- Weaknesses: CWE-1395
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

pdoc provides API Documentation for Python Projects. Documentation generated with `pdoc --math` linked to JavaScript files from polyfill.io. The polyfill.io CDN has been sold and now serves malicious code. This issue has been fixed in pdoc 14.5.1.

(As written by CVE List.)

## Affected

- mitmproxy pdoc: < 14.5.1; before 14.5.1
- pdoc (PyPI): before 14.5.1

## Every score

- GitHub_M: CVSS:3.1 0.0 None `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L/E:H/RL:O/RC:C/MC:N/MI:N/MA:N`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L`

## References

- <https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62> (web)
- <https://github.com/mitmproxy/pdoc/pull/703> (web)
- <https://sansec.io/research/polyfill-supply-chain-attack> (web)
- <https://www.vicarius.io/vsociety/posts/polyfillio-in-pdoc-cve-2024-38526> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-38526> (advisory)
- <https://github.com/mitmproxy/pdoc/commit/726b8f2e365fe8afeb3604a7c73d19b460395d58> (web)
- <https://github.com/mitmproxy/pdoc> (package)
- <https://pypi.org/project/pdoc> (package)
- <https://github.com/advisories/GHSA-5vgj-ggm4-fg62> (advisory)

## Sources

- CVE List: [CVE-2024-38526](https://www.cve.org/CVERecord?id=CVE-2024-38526), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-5vgj-ggm4-fg62](https://github.com/advisories/GHSA-5vgj-ggm4-fg62), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-38526](https://nvd.nist.gov/vuln/detail/CVE-2024-38526), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1764](https://osv.dev/vulnerability/PYSEC-2026-1764), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-38526 · Whole record: https://cve.day/CVE-2024-38526.json · Rebuilt by cve.day 2026-11-25T22:58:42.244Z
