Denial of Service Vulnerability in Node-Fresh Package

node-fresh Updated 02 Oct 2025

Summary

07/06/2018
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2017-16119: Fresh is a module used by the Express.js framework for HTTP response freshness testing. Affects node-fresh versions < 0.2.0-2. Fixed in 0.2.0-2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Node-Fresh is a module utilized by the Express.js framework, designed to facilitate HTTP response freshness testing. It helps ensure that responses are not stale and are still valid for client requests. However, this package is vulnerable to a specific issue that can lead to denial of service, impacting applications that rely on it for efficient HTTP response handling.

Vulnerability Detail

The vulnerability in Node-Fresh arises from its handling of specially crafted input, which triggers a regular expression denial of service (ReDoS). When such input is processed, it can block the event loop, resulting in a denial of service condition. This can severely affect the performance and availability of applications that depend on the Express.js framework for handling HTTP requests.

How To Fix

Minimum fixed version

0.2.0-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-fresh

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can implement input validation to sanitize and restrict the types of input that are passed to the Node-Fresh module, thereby mitigating the risk of triggering the denial of service condition.

Conclusion

The Node-Fresh package contains a vulnerability that can lead to denial of service due to improper handling of input. It is crucial to update to the patched version to ensure the security and performance of applications using this module. Implementing input validation can serve as a temporary measure until an update can be applied.

See every vulnerability recorded for node-fresh →

Share this vulnerability

FAQ

The vulnerability is a regular expression denial of service (ReDoS) that can block the event loop when specially crafted input is processed.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without requiring any signup.

The primary consequence is a denial of service, which can lead to application downtime and degraded performance for users relying on the affected services.

Yes, a patched version of Node-Fresh (0.2.0-2) is available. Updating to this version will resolve the vulnerability.

If an immediate update is not possible, implement input validation to restrict the types of input processed by Node-Fresh as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for node-fresh.

How To Fix

Minimum fixed version

0.2.0-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-fresh

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback