Advisory

DEBIAN-CVE-2026-30838

Also known as: CVE-2026-30838

Summary

The record has no summary.

Details

league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowed HTML tag name and the closing >. For example, <script\n> would pass through unfiltered and be rendered as a valid HTML tag by browsers. This is a cross-site scripting (XSS) vector for any application that relies on this extension to sanitize untrusted user input. All applications using the DisallowedRawHtml extension to process untrusted markdown are affected. Applications that use a dedicated HTML sanitizer (such as HTML Purifier) on the rendered output are not affected. This issue has been patched in version 2.8.1.

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-03-07 16:15 UTC
Modified
2026-10-01 03:03 UTC

Affected packages and fixes

php-league-commonmark

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 2.3.9-1+deb12u1 (ecosystem)

Fixed versions

2.3.9-1+deb12u1

Fix

  • Fixed version 2.3.9-1+deb12u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

php-league-commonmark

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 2.7.0-1+deb13u1 (ecosystem)

Fixed versions

2.7.0-1+deb13u1

Fix

  • Fixed version 2.7.0-1+deb13u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

php-league-commonmark

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 2.8.1-1 (ecosystem)

Fixed versions

2.8.1-1

Fix

  • Fixed version 2.8.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences