# CVE-2021-32671: XSS vulnerability with translator

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 40.0%, higher than 98% of CVEs (2026-12-01)
- Published: 2021-06-07T21:25:12.000Z
- Modified: 2026-07-08T06:27:58.764Z
- Also known as: GHSA-5qjq-69w6-fg57
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## Description

Flarum is a forum software for building communities. Flarum's translation system allowed for string inputs to be converted into HTML DOM nodes when rendered. This change was made after v0.1.0-beta.16 (our last beta before v1.0.0) and was not noticed or documented. This allowed for any user to type malicious HTML markup within certain user input fields and have this execute on client browsers. The example which led to the discovery of this vulnerability was in the forum search box. Entering faux-malicious HTML markup, such as <script>alert('test')</script> resulted in an alert box appearing on the forum. This attack could also be modified to perform AJAX requests on behalf of a user, possibly deleting discussions, modifying their settings or profile, or even modifying settings on the Admin panel if the attack was targetted towards a privileged user. All Flarum communities that run flarum v1.0.0 or v1.0.1 are impacted. The vulnerability has been fixed and published as flarum/core v1.0.2. All communities running Flarum v1.0 have to upgrade as soon as possible to v1.0.2.

(As written by CVE List.)

## Affected

- flarum core: >= 1.0.0, < 1.0.2
- flarum/core (Packagist): from 1.0.0 before 1.0.2
- flarum flarum: 1.0.0; 1.0.1

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/flarum/core/security/advisories/GHSA-5qjq-69w6-fg57> (third-party-advisory, web)
- <https://github.com/flarum/core/commit/440bed81b8019dff00642c8f493b4909d505a28a> (patch, third-party-advisory, web)
- <https://packagist.org/packages/flarum/core> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32671> (advisory)

## Sources

- CVE List: [CVE-2021-32671](https://www.cve.org/CVERecord?id=CVE-2021-32671), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5qjq-69w6-fg57](https://github.com/advisories/GHSA-5qjq-69w6-fg57), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32671](https://nvd.nist.gov/vuln/detail/CVE-2021-32671), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32671 · Whole record: https://cve.day/CVE-2021-32671.json · Rebuilt by cve.day 2026-11-25T22:58:01.679Z
