CVE-2025-53092: Strapi Cors Origin Reflection

The CORS middleware blindly returns the configured origin string when it is a single element without validating it against the incoming request's Origin header. When using wildcard defaults with enabled credentials, underlying libraries may reflect the Origin header unconditionally, leading to a CORS bypass (CVE-2025-53092).

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2025-53092-strapi-cors-origin-reflection --engine opengrep

Description

The CORS middleware blindly returns the configured origin string when it is a single element without validating it against the incoming request's Origin header. When using wildcard defaults with enabled credentials, underlying libraries may reflect the Origin header unconditionally, leading to a CORS bypass (CVE-2025-53092).