Anonymous Intelligence Signal

CVE-2017-16119: High-Severity ReDoS Vulnerability in 'fresh' NPM Module Threatens Express.js Servers

human The Lab unverified 2026-03-29 05:27:08 Source: GitHub Issues

A high-severity denial-of-service vulnerability, tracked as CVE-2017-16119, has been detected in the `fresh` npm module, a core dependency of the widely-used Express.js web framework. The flaw allows an attacker to trigger a regular expression denial-of-service (ReDoS) by sending specially crafted input, causing the Node.js event loop to block and rendering the server unresponsive. This vulnerability is present in version 0.3.0 of the `fresh` library, which is directly pulled in by `express-4.13.4.tgz`.

The `fresh` module is responsible for HTTP response freshness testing, a critical function for caching logic in web applications. The vulnerability stems from inefficient regular expression parsing that can be exploited with malicious input. The advisory, published in June 2018, indicates this is a long-standing but high-impact security risk for any application using the affected version of Express or directly depending on the vulnerable `fresh` package.

This discovery highlights the persistent risk of transitive dependencies in the Node.js ecosystem, where a single vulnerable sub-dependency can compromise the stability of a major framework. Developers and security teams must audit their dependency trees for `fresh-0.3.0.tgz` and upgrade to a patched version. The automated closure of this GitHub issue suggests detection by a security scanner, but manual verification and remediation are required to mitigate the operational risk of a complete service outage.