Check out the latest research from IONIX: NEW! State of the WAF Report

New CVE Detected

CVE-2021-48011 – Path Traversal (Arbitrary File Read) – Servor 1.0.0 through 4.0.2

Be the first to know when new zero-days emerge:

Summary

CVE-2021-48011 is a path traversal vulnerability (CWE-22) in Servor, the lukejacksonn/servor Node.js static file server, affecting versions 1.0.0 through 4.0.2. An unauthenticated remote attacker can use URL-encoded dot segments to escape the served root directory and read files or list directories outside it. The CVE is rated High, with a CVSS v4.0 score of 8.7.

Technical details

  • Root cause: Servor calls decodeURI() on the request path, which turns %2e%2e/ sequences into ../, and only then calls path.join(). This happens in both the serveStaticFile and serveDirectoryListing functions, so the decoded dot segments are never constrained to the served root.
  • Trigger conditions: The attacker sends an HTTP request containing URL-encoded dot segments. Browsers normally resolve literal ../ before sending a request, but command-line clients such as curl can send the sequences unmodified (per the upstream pull request discussion).
  • Attack vector: Network. No authentication or user interaction is required.
  • Impact: Arbitrary file reads and directory listings outside the intended root directory, which can expose sensitive files on the host. The CVSS vectors indicate high confidentiality impact and no integrity or availability impact.

Affected software

  • Servor (npm package servor, lukejacksonn) versions 1.0.0 through 4.0.2

Severity

  • CVSS v4.0: 8.7 (High), CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
  • CVSS v3.1: 7.5 (High), CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Mitigation and recommended actions

  • Immediate: Upgrade Servor to a release that includes the fix from upstream pull request #70 (patch commit ec7d824), which was merged on June 30, 2021. The advisories reviewed do not name a specific fixed version number, so check the Servor releases page to confirm that the version you install is later than 4.0.2 and contains the commit.
  • If no patch can be applied: The advisories do not document an official workaround. As general hardening, do not expose Servor directly to untrusted networks, and keep sensitive files out of the parent directories of the served root. Use a reverse proxy that rejects requests containing encoded dot segments (%2e%2e).
  • Servor is typically used as a development server. Identify any instances reachable from the internet and take them offline or restrict access.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge