Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. league/commonmark
  4. ›
  5. GHSA-97jj-33gv-5xf9

GHSA-97jj-33gv-5xf9: league/commonmark: DisallowedRawHtml bypassed when a disallowed tag name ends the raw-HTML literal

September 30, 2026

Summary

The DisallowedRawHtml extension does not escape a disallowed tag when the tag name is the last thing in the raw HTML. A Markdown line containing just <script is emitted unchanged, and the next block can supply its attributes. With the shipped GFM defaults this allows stored XSS by anyone who can post Markdown.

References

  • github.com/advisories/GHSA-97jj-33gv-5xf9
  • github.com/thephpleague/commonmark/commit/411afcc2a7402756d96c89af8882c724d12d47ca
  • github.com/thephpleague/commonmark/releases/tag/2.10.2
  • github.com/thephpleague/commonmark/security/advisories/GHSA-97jj-33gv-5xf9

Code Behaviors & Features

Detect and mitigate GHSA-97jj-33gv-5xf9 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.3.0 before 2.10.2

Fixed versions

  • 2.10.2

Solution

Upgrade to version 2.10.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/league/commonmark/GHSA-97jj-33gv-5xf9.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 00:23:28 +0000.