Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. decap-cms
  4. ›
  5. CVE-2025-57520

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

September 10, 2025 (updated September 23, 2025)

Decap CMS through 3.8.3 is vulnerable to stored Cross-Site Scripting (XSS) in the admin preview pane. User-controlled fields (e.g., title, description, tags, and body) are rendered in the preview without sufficient sanitization/escaping. An attacker with low-privilege author/contributor access can persist a JavaScript payload in content; when a maintainer or reviewer opens the preview, the payload executes in the CMS admin origin, enabling token/session theft or the execution of privileged actions via the DOM. The issue affects multiple input vectors and requires only passive interaction from the previewing user. As no patched version is available, administrators should restrict untrusted contributor roles and filter or disable preview rendering of untrusted HTML.

References

  • github.com/advisories/GHSA-xp8g-32qh-mv28
  • github.com/decaporg/decap-cms
  • nvd.nist.gov/vuln/detail/CVE-2025-57520
  • onurcangenc.com.tr/posts/cve-2025-57520--stored-xss-in-decap-cms-3-8-3

Code Behaviors & Features

Detect and mitigate CVE-2025-57520 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.8.3

Solution

Unfortunately, there is no solution available yet.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/decap-cms/CVE-2025-57520.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 18 Oct 2025 00:19:47 +0000.