Skip to main content
Vulnerability Database/CVE-2026-42270

CVE-2026-42270: Countly Server DOS Vulnerability

CVE-2026-42270 is a denial of service vulnerability in Countly Server that allows unauthenticated attackers to crash the Node.js process through malformed requests. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-42270 Overview

Countly Server contains an unhandled exception vulnerability [CWE-248] that allows unauthenticated attackers to crash the Node.js process. The flaw affects public image and screenshot routes using the local filesystem storage backend, including star-rating/images/, dashboards/images/screenshots/, /appimages/*, /memberimages/*, and */screenshots/*. These routes call getStream and pipe filesystem streams to HTTP responses without registering an error listener. A single request containing a URL-encoded dot triggers an asynchronous EISDIR error that terminates the process. Repeated requests keep the analytics API unavailable. The issue is fixed in versions 24.05.50 and 25.03.44.

Critical Impact

Unauthenticated remote attackers can trigger repeated process crashes on Countly servers, resulting in sustained denial of service against the analytics API.

Affected Products

  • Countly Server versions prior to 24.05.50
  • Countly Server versions prior to 25.03.44
  • Deployments using the local filesystem (fs) storage backend

Discovery Timeline

  • 2026-10-16 - CVE-2026-42270 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-42270

Vulnerability Analysis

The vulnerability resides in how Countly serves static images and screenshots from the local filesystem. Multiple Express routes invoke countlyFs.getStream() and pipe the resulting readable stream directly to the HTTP response. The code paths never attach an error event listener to the stream.

In Node.js, stream errors emitted asynchronously without a listener propagate as uncaught exceptions and terminate the process. An attacker who sends a crafted request causing createReadStream to open a directory instead of a file triggers an EISDIR error. Because no handler exists, the entire Countly process exits. Any process manager restart loop can be defeated by repeated attacks, producing persistent service outage.

Root Cause

The root cause is a missing error handler on filesystem streams piped to HTTP responses. Routes serving star-rating/images/, dashboards/images/screenshots/, /appimages/*, /memberimages/*, and */screenshots/* all share this defect. The vulnerability is classified under [CWE-248] Uncaught Exception.

Attack Vector

The attack requires no authentication and only network access to the Countly HTTP interface. An attacker issues a GET request to one of the vulnerable image routes with a URL-encoded dot (%2E) in the path. The filename resolution yields a directory handle rather than a file. The subsequent createReadStream call emits EISDIR asynchronously, and the Node.js runtime terminates due to the unhandled error.

javascript
// Security patch in frontend/express/app.js
// Adds a stream error listener to prevent process crash
                             res.sendFile(__dirname + '/public/images/default_app_icon.png');
                         }
                         else {
+                            stream.on('error', function(streamErr) {
+                                log.e(streamErr);
+                                if (!res.headersSent) {
+                                    res.sendFile(__dirname + '/public/images/default_app_icon.png');
+                                }
+                                else {
+                                    res.end();
+                                }
+                            });
                             res.writeHead(200, {
                                 'Accept-Ranges': 'bytes',
                                 'Cache-Control': 'public, max-age=31536000',

Source: Countly Commit 72f19bc

Detection Methods for CVE-2026-42270

Indicators of Compromise

  • HTTP requests to /appimages/*, /memberimages/*, star-rating/images/*, dashboards/images/screenshots/*, or any */screenshots/* path containing URL-encoded dots (%2E) or other characters that resolve to a directory.
  • Node.js process crash logs containing EISDIR: illegal operation on a directory, read or uncaught exception traces from fs.createReadStream.
  • Repeated process restarts of the Countly service correlated with external HTTP traffic to image routes.

Detection Strategies

  • Monitor web server access logs for anomalous request patterns against the affected image endpoints, especially requests containing encoded path separators or dots.
  • Correlate Node.js crash events with inbound HTTP activity to identify intentional abuse.
  • Alert on sudden drops in Countly analytics API availability or health-check failures.

Monitoring Recommendations

  • Enable centralized logging of Node.js stderr and process manager (pm2, systemd) restart events.
  • Deploy a reverse proxy (nginx, HAProxy) in front of Countly and log full request URIs for post-incident analysis.
  • Track process uptime and restart counts in your observability stack to detect repeated crash patterns.

How to Mitigate CVE-2026-42270

Immediate Actions Required

  • Upgrade Countly Server to version 24.05.50 or 25.03.44 or later immediately.
  • Restrict public exposure of the Countly analytics API using firewall rules or VPN access until patching is complete.
  • Deploy a web application firewall rule to block requests to affected image routes that contain encoded dots or directory traversal sequences.

Patch Information

The fix is published in Countly commits 72f19bc5 and f9ad3148. The patch attaches an error listener to each filesystem stream, falling back to a default image or ending the response gracefully. Full release details are in Countly Release v24.05.50, Countly Release v25.03.44, and the GitHub Security Advisory GHSA-86cv-qwp9-jwp3.

Workarounds

  • Place a reverse proxy in front of Countly that rejects requests to /appimages/*, /memberimages/*, star-rating/images/*, and */screenshots/* containing URL-encoded dots (%2E) or non-canonical paths.
  • Switch the storage backend away from local filesystem (fs) where feasible, since the vulnerable code paths are tied to the local fs backend.
  • Configure the process supervisor to rate-limit restarts and alert operators when restart thresholds are exceeded, reducing the window of effective denial of service.
bash
# Example nginx rule to block encoded dots in affected routes
location ~* ^/(appimages|memberimages|star-rating/images|.*/screenshots)/ {
    if ($request_uri ~* "%2E") {
        return 400;
    }
    proxy_pass http://countly_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.