High severity7.2OSV Advisory· Published Jun 26, 2024· Updated Apr 15, 2026
CVE-2024-38526
CVE-2024-38526
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pdocPyPI | < 14.5.1 | 14.5.1 |
Affected products
1Patches
29af869689fef726b8f2e365fremove references to polyfill.io (#703)
3 files changed · +0 −3
pdoc/templates/math.html.jinja2+0 −1 modified@@ -10,7 +10,6 @@ } }; </script> -<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> <script> /* Re-invoke MathJax when DOM content changes, for example during search. */
test/testdata/math_demo.html+0 −1 modified@@ -18,7 +18,6 @@ } }; </script> -<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> <script> /* Re-invoke MathJax when DOM content changes, for example during search. */
test/testdata/math_misc.html+0 −1 modified@@ -18,7 +18,6 @@ } }; </script> -<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> <script> /* Re-invoke MathJax when DOM content changes, for example during search. */
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/advisories/GHSA-5vgj-ggm4-fg62ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-38526ghsaADVISORY
- github.com/mitmproxy/pdoc/commit/726b8f2e365fe8afeb3604a7c73d19b460395d58ghsaWEB
- github.com/mitmproxy/pdoc/pull/703nvdWEB
- github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62nvdWEB
- sansec.io/research/polyfill-supply-chain-attacknvdWEB
- www.vicarius.io/vsociety/posts/polyfillio-in-pdoc-cve-2024-38526nvdWEB
News mentions
0No linked articles in our index yet.