Vulnerabilities/

elysia-cors Origin Validation Error

Severity:
Medium

Description

An Origin Validation Error in the elysia-cors library thru 1.3.0 allows attackers to bypass Cross-Origin Resource Sharing (CORS) restrictions. The library incorrectly validates the supplied origin by checking if it is a substring of any domain in the site’s CORS policy, rather than performing an exact match.

Recommendation

Update the @elysiajs/cors package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@elysiajs/cors
Anything's wrong? Let us know Last updated on January 29, 2026