Intel

AIKIDO-2026-940031

srvx is vulnerable to Information Disclosure

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 23, 2026
July 23, 2026

59

CVE Score

Medium

Information Disclosure

Are you affected? Scan for Free

TL;DR

The static file middleware (serveStatic) serves files from a directory but only checks containment lexically and does not resolve symbolic links, so a symlink inside the served root can expose arbitrary files elsewhere on the host. It also fails to deny dotfiles that carry an extension, allowing sensitive files such as environment files and version-control metadata to be fetched directly. On-the-fly Brotli compression runs at maximum quality without size bounds, enabling CPU amplification. The fix re-asserts containment against the realpath, denies dot segments by default except .well-known, and bounds compression.

How do I fix this?

Upgrade the srvx library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and serve files using the static file middleware.

Package

Versions

0.8.3 - 0.11.22

Fixed in 0.12.0

Background info

srvx is vulnerable to Information Disclosure in versions 0.8.3 - 0.11.22.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea