Skip to content
Heist/ feed
Back to feed
High

pdoc embeds link to malicious CDN if math mode is enabled

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-38526
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 17:12 UTC · Revision 1

Source evidence

pdoc embeds link to malicious CDN if math mode is enabled

core-osv · Original source

Published 25 Jun 2024, 23:53 UTC

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.

osv:CVE-2024-38526
Complete source record
{
  "id": "162876c78c46286f6a4e36a10473b71b12739a5c53591f9ea565ada557eb3bcb",
  "url": "https://osv.dev/vulnerability/CVE-2024-38526",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:CVE-2024-38526",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-38526",
      "aliases": [
        "CVE-2024-38526",
        "GHSA-5vgj-ggm4-fg62",
        "PYSEC-2026-1764"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mitmproxy/pdoc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9af869689fef2f8134ca13b577e0fdb7e55b672b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "14.5.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v14.5.0",
            "v14.4.0",
            "v14.3.0",
            "v14.2.0",
            "v14.1.0",
            "v14.0.0",
            "v13.1.1",
            "v13.1.0",
            "v13.0.1",
            "v13.0.0",
            "v12.3.1",
            "v12.3.0",
            "v12.2.2",
            "v12.2.1",
            "v12.2.0",
            "v12.1.0",
            "v12.0.2",
            "v12.0.1",
            "v12.0.0",
            "v11.2.0",
            "v11.1.0",
            "v11.0.0",
            "v10.0.4",
            "v10.0.3",
            "v10.0.2",
            "v10.0.1",
            "v10.0.0",
            "v9.0.1",
            "v9.0.0",
            "v8.3.0",
            "v8.2.0",
            "v8.1.0",
            "v8.0.1",
            "v8.0.0",
            "v7.4.0",
            "v7.3.1",
            "v7.3.0",
            "v7.2.0",
            "v7.1.1",
            "v7.1.0",
            "v7.0.3",
            "v7.0.2",
            "v7.0.1",
            "v7.0.0",
            "v6.6.0",
            "v6.5.0",
            "v6.4.4",
            "v6.4.3",
            "v6.4.2",
            "v6.4.1",
            "v6.4.0",
            "v6.3.2",
            "v6.3.1",
            "v6.3.0",
            "v6.2.0",
            "v6.1.1",
            "v6.1.0",
            "v6.0.0",
            "v5.0.0",
            "v4.0.0",
            "v3.0.1",
            "v3.0.0",
            "v2.0.0",
            "v1.1.0",
            "v1.0.1",
            "v1.0.0",
            "0.3.2",
            "0.3.1",
            "0.3.0",
            "0.2.4",
            "0.2.3",
            "0.2.2",
            "0.2.1",
            "0.2.0",
            "0.1.8",
            "0.1.7",
            "0.1.5",
            "0.1.4",
            "0.1.3",
            "0.1.2",
            "0.1.1",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38526.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.043907417Z",
      "provider": "osv",
      "references": [
        "https://sansec.io/research/polyfill-supply-chain-attack",
        "https://www.vicarius.io/vsociety/posts/polyfillio-in-pdoc-cve-2024-38526",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38526.json",
        "https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-38526",
        "https://github.com/mitmproxy/pdoc/pull/703"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1395"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38526.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-38526",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505167,
  "published_at": "2024-06-25T23:53:54.677+00:00"
}