Intel

AIKIDO-2026-940031

srvx is vulnerable to Information Disclosure

Information Disclosure Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

59

Medium Risk

This Affects:

JSsrvx
0.8.3 - 0.11.22
Fixed in 0.12.0
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.

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.

Background info

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

How to fix this

Upgrade the srvx library to the patch version.