CVE-2025-57520 Decap CMS Cross Site Scripting (XSS) vulnerability

Medium 6.1 Published Updated

Attackers can inject arbitrary JavaScript via unsanitized input fields in Decap CMS, executing code when users view the preview pane.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-57520?

CVE-2025-57520 is a medium-severity cross-site scripting vulnerability in n/a, published on 10 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A Cross Site Scripting (XSS) vulnerability exists in Decap CMS thru 3.8.3. Input fields such as body, tags, title, and description are not properly sanitized before being rendered in the content preview pane. This enables an attacker to inject arbitrary JavaScript which executes whenever a user views the preview panel. The vulnerability affects multiple input vectors and does not require user interaction beyond viewing the affected content.

Weakness: CWE-79

Which versions are affected by CVE-2025-57520?

2 open source packages ship an affected version, including decap-cms. It affects 1 product.

PackageAffectedFixed in
decap-cms npmAll versions to 3.8.3None
decap-cms npmAll versions to 3.8.3None

Products include Techhub.p-M Decap Cms.

How do I fix CVE-2025-57520?

No fix has been published for CVE-2025-57520 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-57520 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57520 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-xp8g-32qh-mv28.

Is CVE-2025-57520 in your software?

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

Check your SBOMs for free