{
  "cveId": "CVE-2025-46734",
  "url": "https://patchblox.com/security/cve/CVE-2025-46734",
  "summary": "CVE-2025-46734 is fixed in php-league-commonmark on 1 platform, first by DEBIAN-CVE-2025-46734, released May 5, 2025. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "php-league-commonmark: league/commonmark is a PHP Markdown parser",
  "description": "league/commonmark is a PHP Markdown parser. A cross-site scripting (XSS) vulnerability in the Attributes extension of the league/commonmark library (versions 1.5.0 through 2.6.x) allows remote attackers to insert malicious JavaScript calls into HTML. The league/commonmark library provides configuration options such as \u0060html_input: \u0027strip\u0027\u0060 and \u0060allow_unsafe_links: false\u0060 to mitigate cross-site scripting (XSS) attacks by stripping raw HTML and disallowing unsafe links. However, when the Attributes Extension is enabled, it introduces a way for users to inject arbitrary HTML attributes into elements via Markdown syntax using curly braces. Version 2.7.0 contains three changes to prevent this XSS attack vector: All attributes starting with \u0060on\u0060 are considered unsafe and blocked by default; support for an explicit allowlist of allowed HTML attributes; and manually-added \u0060href\u0060 and \u0060src\u0060 attributes now respect the existing \u0060allow_unsafe_links\u0060 configuration option. If upgrading is not feasible, please consider disabling the \u0060AttributesExtension\u0060 for untrusted users and/or filtering the rendered HTML through a library like HTMLPurifier.",
  "published": "2025-05-05T13:15:00Z",
  "severity": "medium",
  "cvss": 6.4,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "epss": 0.00384,
  "epssPercentile": 0.32736,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "php-league-commonmark",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "2.3.9-1\u002Bdeb12u1",
      "fix": "DEBIAN-CVE-2025-46734",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-46734",
      "released": "2025-05-05T20:15:21Z"
    },
    {
      "platform": "linux",
      "product": "php-league-commonmark",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "2.7.0-1",
      "fix": "DEBIAN-CVE-2025-46734",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-46734",
      "released": "2025-05-05T20:15:21Z"
    },
    {
      "platform": "linux",
      "product": "php-league-commonmark",
      "release": "Debian 14",
      "fixedVersion": "2.7.0-1",
      "fix": "DEBIAN-CVE-2025-46734",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-46734",
      "released": "2025-05-05T20:15:21Z"
    },
    {
      "platform": "linux",
      "product": "php-league-commonmark",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.3.1-1ubuntu2\u002Besm1",
      "fix": "php-league-commonmark 1.3.1-1ubuntu2\u002Besm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-php-league-commonmark-1.3.1-1ubuntu2-esm1",
      "released": "2026-03-24T13:16:00Z"
    },
    {
      "platform": "linux",
      "product": "php-league-commonmark",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.6.7-1ubuntu0.1~esm1",
      "fix": "php-league-commonmark 1.6.7-1ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-php-league-commonmark-1.6.7-1ubuntu0.1-esm1",
      "released": "2026-03-24T13:16:00Z"
    },
    {
      "platform": "linux",
      "product": "php-league-commonmark",
      "release": "Ubuntu 24.04.5 LTS (noble)",
      "fixedVersion": "2.4.2-2ubuntu0.1~esm1",
      "fix": "php-league-commonmark 2.4.2-2ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-noble-php-league-commonmark-2.4.2-2ubuntu0.1-esm1",
      "released": "2026-03-24T13:16:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}