Origin Validation Error Affecting @elysiajs/cors package, versions <1.3.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-ELYSIAJSCORS-12084816
  • published21 Aug 2025
  • disclosed20 Aug 2025
  • creditUnknown

Introduced: 20 Aug 2025

NewCVE-2025-50864  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade @elysiajs/cors to version 1.3.1 or higher.

Overview

@elysiajs/cors is a Plugin for Elysia that for Cross Origin Requests (CORs)

Affected versions of this package are vulnerable to Origin Validation Error via improper validation in the processOrigin function. An attacker can gain unauthorized access to user data by supplying a malicious origin that is a substring of an allowed domain, thereby bypassing intended access restrictions.

CVSS Base Scores

version 4.0
version 3.1