CVE-2021-32671: XSS vulnerability in Flarum's translation system

flarum/core Updated 02 Oct 2025

Summary

07/06/2021
Yes i
Critical
10.0

CVE-2021-32671: XSS vulnerability with translator. Affects flarum/core versions >= 1.0.0, < 1.0.2. Fixed in 1.0.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Flarum is an open-source forum software that allows users to create and manage online communities. It provides features such as discussion threads, user profiles, and administration panels. The translation system in Flarum allows for the localization of the forum interface by converting string inputs into HTML DOM nodes when rendered. This feature was introduced after version v0.1.0-beta.16 and was not initially identified as a potential security risk.

Vulnerability Detail

The XSS vulnerability in Flarum's translation system allowed users to inject malicious HTML markup into certain user input fields. This markup would then be executed on client browsers, potentially leading to unauthorized actions. For example, an attacker could enter a script tag containing malicious code, such as <script>alert('test')</script>, which would trigger an alert box on the forum. This vulnerability could be further exploited to perform AJAX requests on behalf of users, enabling actions like deleting discussions, modifying settings or profiles, and even tampering with the Admin panel for privileged users.

How To Fix

Minimum fixed version

1.0.2

This is the first release that contains the fix.

composer require flarum/core:1.0.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are no known workarounds for this vulnerability. Upgrading to the fixed version is the recommended solution.

Conclusion

Flarum's translation system was found to have an XSS vulnerability that allowed for the execution of malicious code on client browsers. This vulnerability has been fixed in the latest release, flarum/core v1.0.2. Flarum communities running v1.0.0 or v1.0.1 should upgrade to v1.0.2 as soon as possible to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for flarum/core →

Share this vulnerability

FAQ

All Flarum communities running v1.0.0 or v1.0.1 are impacted.

The vulnerability allows for unauthorized execution of malicious code on client browsers, which could result in various actions such as deleting discussions, modifying settings or profiles, and tampering with the Admin panel for privileged users.

Yes, the vulnerability has been fixed in the latest release, flarum/core v1.0.2.

To upgrade to the fixed version, run the command 'composer update --prefer-dist --no-dev -a -W' and confirm the version using 'composer show flarum/core'.

No, there are no known workarounds for this vulnerability. Upgrading to the fixed version is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for flarum/core.

How To Fix

Minimum fixed version

1.0.2

This is the first release that contains the fix.

composer require flarum/core:1.0.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback