CVE-2025-46595 Cross-site scripting in Flag

Medium 6.4 Published Updated

An attacker with link creation permissions can inject malicious HTML into flag links, leading to Cross-Site Scripting in Backdrop CMS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-46595?

CVE-2025-46595 is a medium-severity cross-site scripting vulnerability in backdropcms Flag, published on 25 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An XSS issue was discovered in the Flag module before 1.x-3.6.2 for Backdrop CMS. Flag is a module that allows flags to be added to nodes, comments, users, and any other type of entity. It doesn't verify flag links before performing the flag action, or verify that the response returned was provided by the flag module. This can allow crafted HTML to result in Cross Site Scripting. This is mitigated by the fact that an attacker must have a role with permission to create links on the website, for example: create or edit comments or content with a filtered text format.

Weakness: CWE-79

Which versions are affected by CVE-2025-46595?

How do I fix CVE-2025-46595?

No fix has been published for CVE-2025-46595 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-46595 being exploited?

There is no known exploitation of CVE-2025-46595 in the wild and no public exploit code.

Sources

Also known as GHSA-qgfc-q68c-8fgx.

Is CVE-2025-46595 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free