UBUNTU-CVE-2026-30838

Source
https://ubuntu.com/security/CVE-2026-30838
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-30838.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-30838
Upstream
Downstream
Related
Published
2026-03-07T16:15:00Z
Modified
2026-05-20T16:24:55Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N CVSS Calculator
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:25.10
php-league-commonmark

Package

Name
php-league-commonmark
Purl
pkg:deb/ubuntu/php-league-commonmark?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.6.1-2
2.6.2-1
2.7.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "php-league-commonmark",
            "binary_version": "2.7.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-30838.json"
Ubuntu:26.04:LTS
php-league-commonmark

Package

Name
php-league-commonmark
Purl
pkg:deb/ubuntu/php-league-commonmark?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.7.0-1
2.7.1-2
2.8.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "php-league-commonmark",
            "binary_version": "2.8.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-30838.json"
Ubuntu:Pro:20.04:LTS
php-league-commonmark

Package

Name
php-league-commonmark
Purl
pkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.3.1-1ubuntu2+esm1

Affected versions

1.*
1.1.2-1
1.2.0-1
1.3.0-1
1.3.1-1
1.3.1-1ubuntu2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "php-league-commonmark",
            "binary_version": "1.3.1-1ubuntu2+esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-30838.json"
Ubuntu:Pro:22.04:LTS
php-league-commonmark

Package

Name
php-league-commonmark
Purl
pkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.6.7-1ubuntu0.1~esm1

Affected versions

1.*
1.5.7-2build1
1.6.6-1build1
1.6.7-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "php-league-commonmark",
            "binary_version": "1.6.7-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-30838.json"
Ubuntu:Pro:24.04:LTS
php-league-commonmark

Package

Name
php-league-commonmark
Purl
pkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps%2Fnoble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.4.2-2ubuntu0.1~esm1

Affected versions

2.*
2.3.9-1
2.4.1-1
2.4.2-1
2.4.2-2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "php-league-commonmark",
            "binary_version": "2.4.2-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-30838.json"