CVE-2024-35621:
formwork Cross-site scripting vulnerability in Markdown fields
4.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.34577%
CWE
Published
5/28/2024
Updated
6/10/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
getformwork/formwork | composer | < 1.13.0 | 1.13.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unescaped HTML in Markdown processing. The key patch adds safe_mode enforcement in ParsedownExtra
's constructor via setSafeMode()
. In vulnerable versions (<1.13.0), this safety mechanism was missing, leaving the text()
method (which converts Markdown to HTML) vulnerable to XSS. The text()
method is the primary HTML generation point where script tags would be rendered without proper neutralization when safe mode isn't active.