CVE-2021-21283
XSS in Flarum Sticky extension.
Also known as GHSA-h3gg-7wx2-cq3h
Mitigation
- Upgrade flarum/sticky to 0.1.0-beta.15.1 or later.
Who should check
- Projects that depend on Packagist package flarum/sticky (>= 0.1.0-beta.14, < 0.1.0-beta.15.1)
- Anyone running flarum sticky >=v0.1.0-beta.14 <=v0.1.0-beta.15
Vulnerability facts
- Affected
- flarum/sticky >= 0.1.0-beta.14, < 0.1.0-beta.15.1
- Fixed in
- 0.1.0-beta.15.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.80% chance of exploitation in 30 days (percentile 53, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
Flarum is an open source discussion platform for websites. The "Flarum Sticky" extension versions 0.1.0-beta.14 and 0.1.0-beta.15 has a cross-site scripting vulnerability. A change in release beta 14 of the Sticky extension caused the plain text content of the first post of a pinned discussion to be injected as HTML on the discussion list. The issue was discovered following an internal audit. Any HTML would be injected through the m.trust() helper. This resulted in an HTML injection where <script> tags would not be executed. However it was possible to run javascript from other HTML attributes, enabling a cross-site scripting (XSS) attack to be performed. Since the exploit only happens with the first post of a pinned discussion, an attacker would need the ability to pin their own discussion, or be able to edit a discussion that was previously pinned. On forums where all pinned posts are authored by your staff, you can be relatively certain the vulnerability has not been exploited. Forums where some user-created discussions were pinned can look at the first post edit date to find whether the vulnerability might have been exploited. Because Flarum doesn't store the post content history, you cannot be certain if a malicious edit was reverted. The fix will be available in version v0.1.0-beta.16 with Flarum beta 16. The fix has already been back-ported to Flarum beta 15 as version v0.1.0-beta.15.1 of the Sticky extension. Forum administrators can disable the Sticky extension until they are able to apply the update. The vulnerability cannot be exploited while the extension is disabled.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist flarum/sticky | >= 0.1.0-beta.14, < 0.1.0-beta.15.1 | 0.1.0-beta.15.1 | osv |
| flarum sticky | >=v0.1.0-beta.14 <=v0.1.0-beta.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-21283. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-21283.md Affected: flarum/sticky >= 0.1.0-beta.14, < 0.1.0-beta.15.1 Fixed in: 0.1.0-beta.15.1 Steps: 1. Search this machine and project for flarum/sticky (Packagist), flarum sticky: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2021-21283 being exploited?
There is no confirmed exploitation: CVE-2021-21283 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.80% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-21283?
Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2021-21283?
flarum/sticky >= 0.1.0-beta.14, < 0.1.0-beta.15.1.
Is there a fix for CVE-2021-21283?
Yes. Fixed in 0.1.0-beta.15.1. Upgrade flarum/sticky to 0.1.0-beta.15.1 or later.
How do I check if I'm affected by CVE-2021-21283?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.