# CVE-2021-21283: XSS in Flarum Sticky extension.

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- 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): 0.80%, higher than 57% of CVEs (2026-12-01)
- Published: 2021-01-26T20:45:24.000Z
- Modified: 2026-07-08T05:59:43.051Z
- Also known as: GHSA-h3gg-7wx2-cq3h
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- flarum sticky: >=v0.1.0-beta.14 <=v0.1.0-beta.15; 0.1.0
- flarum/sticky (Packagist): from 0.1.0-beta.14 before 0.1.0-beta.15.1

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: rating Medium
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/flarum/sticky/security/advisories/GHSA-h3gg-7wx2-cq3h> (third-party-advisory, web)
- <https://github.com/flarum/sticky/pull/24> (patch, third-party-advisory, web)
- <https://github.com/flarum/sticky/commit/7ebd30462bd405c4c0570b93a6d48710e6c3db19> (patch, third-party-advisory, web)
- <https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151%29>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21283> (advisory)
- <https://discuss.flarum.org/d/26042-security-update-to-flarum-sticky-010-beta151)> (web)

## Sources

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

---

Page: https://cve.day/CVE-2021-21283 · Whole record: https://cve.day/CVE-2021-21283.json · Rebuilt by cve.day 2026-11-25T22:57:59.735Z
