CVE-2025-53092
JSON

6.5medium

Strapi core vulnerable to sensitive data exposure via CORS misconfiguration

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9329-mxxw-qwf8

Description

Strapi is an open source headless content management system. Strapi versions prior to 5.20.0 contain a CORS misconfiguration vulnerability in default installations. By default, Strapi reflects the value of the Origin header back in the Access-Control-Allow-Origin response header without proper validation or whitelisting. This allows an attacker-controlled site to send credentialed requests to the Strapi backend. An attacker can exploit this by hosting a malicious site on a different origin (e.g., different port) and sending requests with credentials to the Strapi API. The vulnerability is fixed in version 5.20.0. No known workarounds exist.

Affected

Product or packageVersionsReported by
strapi strapi< 5.20.0, before 5.20.0CVE List, NVD
@strapi/core (npm)before 5.20.0GitHub Advisory Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-200CWE-284CWE-364CWE-942

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Strapi is an open source headless content management system. Strapi versions prior to 5.20.0 contain a CORS misconfiguration vulnerability in default installations. By default, Strapi reflects the value of the Origin header back in the Access-Control-Allow-Origin response header without proper validation or whitelisting. This allows an attacker-controlled site to send credentialed requests to the Strapi backend. An attacker can exploit this by hosting a malicious site on a different origin (e.g., different port) and sending requests with credentials to the Strapi API. The vulnerability is fixed in version 5.20.0. No known workarounds exist.

GitHub Advisory Database
Summary

A CORS misconfiguration vulnerability exists in default installations of Strapi where attacker-controlled origins are improperly reflected in API responses.

Technical Details

By default, Strapi reflects the value of the Origin header back in the Access-Control-Allow-Origin response header without proper validation or whitelisting.

Example: Origin: http://localhost:8888 Access-Control-Allow-Origin: http://localhost:8888 Access-Control-Allow-Credentials: true

This allows an attacker-controlled site (on a different port, like 8888) to send credentialed requests to the Strapi backend on 1337.

Suggested Fix
  1. Explicitly whitelist trusted origins
  2. Avoid reflecting dynamic origins
NVD (es)

Strapi es un sistema de gestión de contenido headless de código abierto. Las versiones de Strapi anteriores a la 5.20.0 contienen una vulnerabilidad de mala configuración de CORS en instalaciones predeterminadas. Por defecto, Strapi refleja el valor del encabezado Origin en el encabezado de respuesta Access-Control-Allow-Origin sin una validación o lista blanca adecuadas. Esto permite que un sitio controlado por un atacante envíe solicitudes con credenciales al backend de Strapi. Un atacante puede explotar esto al alojar un sitio malicioso en un origen diferente (por ejemplo, un puerto diferente) y enviar solicitudes con credenciales a la API de Strapi. La vulnerabilidad está corregida en la versión 5.20.0. No existen soluciones alternativas conocidas.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-53092 changed 2025-10-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-9329-mxxw-qwf8 changed 2026-02-03CC-BY-4.0
NVDCVE-2025-53092 changed 2026-10-19Public domain