CVE-2026-33347

league/commonmark has an embed extension allowed_domains bypass

State
Published
Severity
6.3 Medium
Published
Mar 24, 2026
Updated
Mar 26, 2026
Reserved
Mar 18, 2026

Read the record on cve.org

Description

league/commonmark is a PHP Markdown parser. From version 2.3.0 to before version 2.8.2, the DomainFilteringAdapter in the Embed extension is vulnerable to an allowlist bypass due to a missing hostname boundary assertion in the domain-matching regex. An attacker-controlled domain like youtube.com.evil passes the allowlist check when youtube.com is an allowed domain. This issue has been patched in version 2.8.2.

Scores

CVSSScoreVectorSource
4.06.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:NGitHub_M

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-185 Incorrect Regular Expression
  • CWE-918 Server-Side Request Forgery (SSRF)

Affected Products

ProductVersions
commonmarkthephpleague
  • >= 2.3.0, < 2.8.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.