CVE-2021-32671: XSS vulnerability with translator
10
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.8657%
CWE
Published
6/7/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
flarum/core | composer | >= 1.0.0, <= 1.0.1 | 1.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerability stemmed from unescaped string parameters in the translation system. The patched version introduces a loop that wraps string parameters in React elements (<>...</>), which forces proper HTML escaping. The prepareParameters
method before v1.0.2 would pass raw user input strings directly to the translation renderer, enabling XSS when these strings contained HTML markup.