{"id":"CVE-2024-38526","published":"2024-06-25T23:53:54Z","modified":"2025-02-13T17:53:15Z","title":"pdoc embeds link to malicious CDN if math mode is enabled","vendor":"mitmproxy","product":"pdoc","tier":"core","eol":null,"affectedVersions":[{"vendor":"mitmproxy","product":"pdoc","versions":["< 14.5.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-08-14T14:23:46.307681Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The pdoc Python API documentation generator, when run with its --math option, embeds JavaScript references that load from the polyfill.io CDN, a third-party component that has since been sold and now serves malicious code. An attacker who controls that CDN content can deliver malicious scripts to anyone who views the generated documentation, requiring only that a user open the page in a browser with the math mode output enabled and no authentication or network access to the target.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:08Z"},"cvss":{"score":0,"severity":"NONE","version":"3.1","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03832,"percentile":0.9035,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-07-09","exploitedFirstSeen":"2024-07-09","ransomware":false,"evidence":[{"url":"https://45734016.fs1.hubspotusercontent-na1.net/hubfs/45734016/THREATMON%20GLOBAL%20CYBER%20THREAT%20REPORT%202024_H1.pdf","date":"2024-07-09"},{"url":"https://45734016.fs1.hubspotusercontent-na1.net/hubfs/45734016/GLOBAL%20CYBER%20THREAT%20REPORT%202024%20.pdf","date":"2025-01-08"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":1,"pulses":[{"name":"Midwest Malware","url":"https://otx.alienvault.com/pulse/6a8e6c8dc6d3df83aac08378","created":"2026-08-26"}],"provenance":"machine"},"cwes":[{"id":"CWE-1395","name":"Dependency on Vulnerable Third-Party Component"}],"references":[{"url":"https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mitmproxy/pdoc/pull/703","tags":["x_refsource_MISC"]},{"url":"https://sansec.io/research/polyfill-supply-chain-attack","tags":["x_refsource_MISC"]},{"url":"https://www.vicarius.io/vsociety/posts/polyfillio-in-pdoc-cve-2024-38526","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"PyPI","package":"pdoc","vulnerableRanges":["<14.5.1"],"patched":["14.5.1"],"from":["GHSA-5vgj-ggm4-fg62","PYSEC-2026-1764"],"provenance":"source"}],"advisories":[{"id":"GHSA-5vgj-ggm4-fg62","url":"https://github.com/advisories/GHSA-5vgj-ggm4-fg62","severity":"HIGH","ecosystem":"PyPI","package":"pdoc","vulnerableRanges":["<14.5.1"],"patched":["14.5.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-1935","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1935","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2024-09-05","earliestUrl":"https://github.com/putget/CVE-2024-38526","repos":[{"name":"padayali-JD/pollyscan","url":"https://github.com/padayali-JD/pollyscan","stars":6,"created":"2025-02-18"},{"name":"putget/CVE-2024-38526","url":"https://github.com/putget/CVE-2024-38526","stars":0,"created":"2024-09-05"}]},"first":{"date":"2024-09-05","source":"PoC-in-GitHub","url":"https://github.com/putget/CVE-2024-38526"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-06-25","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-38526","provenance":"source"},{"date":"2024-07-09","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://45734016.fs1.hubspotusercontent-na1.net/hubfs/45734016/THREATMON%20GLOBAL%20CYBER%20THREAT%20REPORT%202024_H1.pdf","provenance":"source"},{"date":"2024-09-05","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/putget/CVE-2024-38526","provenance":"source"}],"speed":{"daysToPublicExploit":72,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":58.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 865 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":18.07,"detail":"percentile 0.9035"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":0.0,"detail":"base score 0"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}