Vulnerability library
Security checkJanuary 29, 2026

elysia-cors Origin Validation Error

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpm@elysiajs/cors

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): < 1.3.1
  • Patched version(s): 1.3.1

References

Could your website be exposed too?

SmartScanner can check your website for elysia-cors Origin Validation Error and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 29, 2026