Patchfirst
CVE-2024-38526 Public exploit None · 0.0 EPSS 3.8%

pdoc embeds link to malicious CDN if math mode is enabled

Fix:upgrade pdoc to 14.5.1 or later Details ↓

mitmproxy · pdoc

Summary

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.

Official description · CVE.org

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.

Breakdown
58.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 14 days after disclosure. Public exploit code (PoC-in-GitHub) appeared 2 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+14 days
  3. Public exploit codePoC-in-GitHub+2 mo

Affected versions and fixes

as published in the CVE record

mitmproxy pdoc

Affected: < 14.5.1

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: pdoc.

Upgrade to 14.5.1 or later

pippip install "pdoc>=14.5.1"

The first fix for CVE-2024-38526. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 14.5.114.5.1

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 1 community threat pulse (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close