Fedify has ReDoS Vulnerability in HTML Parsing Regex
fedify-dev fedify
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @fedify/fedify npm |
|
|
fedify-dev fedify
| Product | Affected | Fixed in |
|---|---|---|
| @fedify/fedify npm |
|
|
Fedify is a TypeScript library for building federated server apps powered by ActivityPub. Prior to versions 1.6.13, 1.7.14, 1.8.15, and 1.9.2, a Regular Expression Denial of Service (ReDoS) vulnerability exists in Fedify's document loader. The HTML parsing regex at packages/fedify/src/runtime/docloader.ts:259 contains nested quantifiers that cause catastrophic backtracking when processing maliciously crafted HTML responses. This issue has been patched in versions 1.6.13, 1.7.14, 1.8.15, and 1.9.2.
From the CVE record · GitHub_M
Fedify’s document loader has an HTML parsing regex that can backtrack excessively. A maliciously crafted HTML response can cause a denial of service when the loader processes it; the input does not specify authentication or user-interaction requirements.
Teams using npm @fedify/fedify should check installations below 1.6.13, from 1.7.0 to below 1.7.14, from 1.8.0 to below 1.8.15, or from 1.9.0 to below 1.9.2.