Intel

AIKIDO-2026-730737

srvx is vulnerable to Improper Access Control

Improper Access Control Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

65

Medium Risk

This Affects:

JSsrvx
0.11.22 - 0.11.22
Fixed in 0.12.0
Are you affected? Scan for Free

TL;DR

The srvx server resolves X-Forwarded-For, X-Forwarded-Proto, and X-Forwarded-Host headers by taking the leftmost value when the trustProxy option is enabled. Because real proxies append to these headers, the leftmost entry is fully client-controlled, so a request can set an arbitrary client IP, protocol, or host. This lets an attacker spoof request.ip to bypass IP allowlists, rate limits, and geo checks, poison audit logs, and poison forwarded proto and host values used in cache keys and generated links. The fix resolves the forwarded chain hop-aware from the trusted peer inward so only values contributed by trusted proxies are honored.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and have enabled the trustProxy option.

Background info

srvx is vulnerable to Improper Access Control in versions 0.11.22 - 0.11.22.

How to fix this

Upgrade the srvx library to the patch version.