Vulnerability library
Security checkDecember 09, 2025

Elysia affected by arbitrary code injection through cookie config

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

High severitynpmelysia

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Arbitrary code execution from cookie config. If dynamic cookies are enabled (ie there exists a schema for cookies), the cookie config is injected into the compiled route without first being sanitised.

Recommendation

Update the elysia package to the latest compatible version. Followings are version details:

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

References

Could your website be exposed too?

SmartScanner can check your website for Elysia affected by arbitrary code injection through cookie config and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated December 09, 2025