CVE-2025–25062:Stored Cross-Site Scripting (XSS) in Backdrop CM
A stored cross-site scripting flaw existed in Backdrop CMS v1.28.2's comment editing component, where an authenticated low-privileged user could inject JavaScript into a comment field. When an admin edited that comment, the script executed in the admin's browser, potentially allowing session hijacking or account compromise.
Rudransh Singh Rajpurohit Follow
Published on medium.com
During a routine security evaluation of a demo deployment of Backdrop CMS v1.28.2 (a fork of Drupal maintained by the Software Freedom Conservancy), I discovered a serious vulnerability in the comment-editing feature.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the comment editing interface rendered user-supplied comment content without proper output encoding or sanitisation.
Impact
The stored script could execute in the admin's browser, potentially stealing session cookies and tokens, bypassing CSRF protections, and escalating to full administrative control.
What the attacker needed
A low-privileged account; an admin who edits the comment; a proxy tool to tamper the request
The fix
The vulnerability was fixed by the Backdrop CMS maintainers.
How it was found
- Create two accounts: a low-privileged user and an admin.
- As the regular user, post a benign comment on a published post.
- Intercept the HTTP request with a proxy tool and inject a crafted JavaScript payload into the comment.
- As the admin, edit that comment from the dashboard; the script executes in the admin's browser.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Stored cross-site scripting (XSS) is when a website saves harmful code that a user typed in, and later shows it to someone else without cleaning it up. Here, a normal user could put JavaScript into a comment, and when an administrator opened that comment to edit it, the code ran in the admin's browser. That could let the attacker steal the admin's login session or act as the admin.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.