fast-redact Prototype Pollution Vulnerability Allowing Denial-of-Service

Vulnerability

A prototype pollution vulnerability has been identified in the fast-redact package, specifically in versions through 3.5.0. The issue arises in the nestedRestore function, where inadequate validation of user-supplied data allows attackers to inject properties into Object.prototype. This manipulation can disrupt the behavior of fundamental JavaScript objects, leading to potential denial-of-service conditions, data integrity issues, or cross-site scripting vulnerabilities in applications that use fast-redact for redacting sensitive information.

Impact

Exploitation of this vulnerability allows for prototype pollution, where an attacker can inject properties into the Object.prototype. This could disrupt the behavior of JavaScript objects, potentially causing denial-of-service conditions, compromising data integrity, or introducing cross-site scripting vulnerabilities in applications that rely on fast-redact for data redaction.

Reproduction

To reproduce this vulnerability, use fast-redact version 3.5.0 or earlier. The vulnerability can be triggered by calling the nestedRestore function with a payload that includes deeply nested paths targeting Object.prototype. This will inject properties into the prototype, allowing for unauthorized modifications that can disrupt object behaviors and lead to denial-of-service conditions or other vulnerabilities in the application.

Added: Sep 24, 2025, 10:02 PM
Updated: Sep 24, 2025, 10:02 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
8.7
remediation
0.0
relevance
0.6
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.