Vulnerability · Published Jun 25, 2024 · Assigned by GitHub_M

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

None 0.0

In plain English

A security flaw in pdoc from mitmproxy. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 3.8% (higher than 90% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)0.0None
Exploit odds (30 days)3.8%top 9.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpdoc14.5.1GHSA-5vgj-ggm4-fg62
PyPIpdoc14.5.1PYSEC-2026-1764

Affected products (as reported)

VendorProductVersions
mitmproxy pdoc < 14.5.1

Weakness: CWE-1395 · 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

References