CVE-2022-42097
Description
Backdrop CMS version 1.23.0 was discovered to contain a stored cross-site scripting (XSS) vulnerability via 'Comment.' .
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
backdrop/backdropPackagist | <= 1.23.0 | — |
Affected products
2- Backdrop/CMSdescription
Patches
Vulnerability mechanics
Root cause
"Insufficient output encoding of comment content allows stored cross-site scripting (XSS)."
Attack vector
An attacker with the ability to post comments on the Backdrop CMS site can inject arbitrary JavaScript into the comment body. When the comment is saved and later rendered for other users (including administrators), the injected script executes in the context of the victim's browser session. The vulnerability is triggered simply by viewing the page that displays the malicious comment. No special network position is required beyond normal web access to the comment submission form.
Affected code
The advisory identifies the comment functionality in Backdrop CMS 1.23.0 as the affected component. The supplied patch only modifies the version constant in core/includes/bootstrap.inc and does not contain the actual code fix for the XSS vulnerability. The specific file or function responsible for rendering comment output without proper sanitization is not shown in the provided patch.
What the fix does
The supplied patch only bumps the version constant from '1.23.x-dev' to '1.23.0' and does not contain any code change that addresses the XSS vulnerability. The advisory states that the vulnerability exists in version 1.23.0, but the patch does not show the actual sanitization fix. Based on the available information, the root cause is insufficient output encoding of comment content, and a proper fix would involve escaping HTML entities in comment text before rendering.
Preconditions
- authAttacker must have the ability to post comments on the Backdrop CMS site (may require an account depending on site configuration).
- inputAttacker must be able to submit a comment containing arbitrary HTML/JavaScript payload.
Generated on May 23, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5News mentions
0No linked articles in our index yet.