{"id":"CVE-2024-38526","aliases":["CVE-2024-38526","GHSA-5vgj-ggm4-fg62","PYSEC-2026-1764"],"related":[],"kind":"vulnerability","state":"published","title":"pdoc embeds link to malicious CDN if math mode is enabled","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nDocumentation generated with `pdoc --math` linked to JavaScript files from polyfill.io.\nThe polyfill.io CDN has been sold and now serves malicious code.\n\nUsers who produce documentation with math mode should update immediately. All other users are unaffected.\n\n### Patches\n\nThis issue has been fixed in pdoc 14.5.1.\n\n### References\n\nhttps://github.com/mitmproxy/pdoc/pull/703\nhttps://sansec.io/research/polyfill-supply-chain-attack\n\n### Timeline\n\n- **[2024-06-25]** https://sansec.io/research/polyfill-supply-chain-attack is published.\n- **[2024-06-25 20:54 UTC]** Issue reported to the pdoc project by @adhintz.\n- **[2024-06-25 21:33 UTC]** Patched version released.\n- **[2024-06-25 21:37 UTC]** Security advisory published.\n- **[2024-06-25 23:49 UTC]** CVE-2024-38526 assigned by GitHub.","format":"markdown","source":"ghsa"},{"lang":"es","text":"pdoc proporciona documentación API para proyectos Python. Documentación generada con `pdoc --math` vinculada a archivos JavaScript de polyfill.io. El CDN polyfill.io se vendió y ahora contiene código malicioso. Este problema se solucionó en pdoc 14.5.1.","source":"nvd"}],"published":"2024-06-25T22:23:30.000Z","modified":"2026-07-07T17:57:02.093Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":0,"rating":"NONE"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":0,"rating":"NONE"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L","score":7.2,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L","score":7.2,"rating":"HIGH"}],"cwes":["CWE-1395"],"affected":[{"ranges":[{"version":"< 14.5.1","status":"affected"}],"vendor":"mitmproxy","product":"pdoc","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"14.5.1","status":"affected"}],"vendor":"mitmproxy","product":"pdoc","cpe":"cpe:2.3:a:mitmproxy:pdoc:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"14.5.1"}],"ecosystem":"PyPI","package":"pdoc","purl":"pkg:pypi/pdoc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"14.5.1"}],"ecosystem":"PyPI","package":"pdoc","purl":"pkg:pypi/pdoc","source":"pysec"}],"references":[{"url":"https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mitmproxy/pdoc/pull/703","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://sansec.io/research/polyfill-supply-chain-attack","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vicarius.io/vsociety/posts/polyfillio-in-pdoc-cve-2024-38526","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38526","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mitmproxy/pdoc/commit/726b8f2e365fe8afeb3604a7c73d19b460395d58","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mitmproxy/pdoc","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pdoc","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-5vgj-ggm4-fg62","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-08-14T14:23:46.307Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38526","url":"https://www.cve.org/CVERecord?id=CVE-2024-38526","licence":"CVE Terms of Use","modified":"2025-02-13T17:53:15.493Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5vgj-ggm4-fg62","url":"https://github.com/advisories/GHSA-5vgj-ggm4-fg62","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:02.093Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38526","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38526","licence":"Public domain","modified":"2026-06-17T07:40:28.397Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1764","url":"https://osv.dev/vulnerability/PYSEC-2026-1764","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:18.155Z"}],"updatedAt":"2026-11-25T22:58:42.244Z","epss":{"score":0.04911,"percentile":0.92898,"date":"2026-11-30T12:00:22.000Z"}}