workerd is vulnerable to Use After Free
45
Medium Risk
Affected versions of this package are vulnerable to a Use-After-Free (UaF) via a Dangling Reference to a Temporary. The vulnerability arises because a constant kj::HashSet<kj::String> object EMPTY_HANDLERS is not defined as a static within a function scope, causing its destructor to run when the function exits and leaving a global reference pointing to freed memory. An attacker can exploit this by manipulating the program's flow to trigger the use of this dangling reference, potentially leading to information disclosure, a crash, or arbitrary code execution depending on how the corrupted memory is accessed.
You are affected if you are using a version that falls within the vulnerable range.
workerd is vulnerable to Use After Free in versions 1.20250204.0 - 1.20250904.0.
Upgrade the workerd library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant