CVE-2021-21321 is a critical-severity (CVSS 10) Improper Input Validation vulnerability in fastify-reply-from. A fix is available for fastify-reply-from — see the affected versions and patch details below.
Prefix escape
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-21321 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,987 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, a proxy for how much of the ecosystem is exposed.
fastify-reply-fromnpmDescription
Impact
By crafting a specific URL, it is possible to escape the prefix of the proxied backend service.
If the base url of the proxied server is /pub/, a user expect that accessing /priv on the target service would not be possible. Unfortunately, it is.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Patches
A patch have been submitted by Corey Farrell [email protected], the reporter. All releases after v4.0.2 include the fix.
Workarounds
There are no workaround available.
For more information
If you have any questions or comments about this advisory:
- Open an issue in fastify-reply-from
- Email us at [email protected]
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | fastify-reply-from | all versions | 4.0.2npm install fastify-reply-from@4.0.2 |
Affected Products
fastify-reply-fromfastify-reply-from_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for fastify-reply-from, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update fastify-reply-from to 4.0.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-21321 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2021-21321 in your dependencies?
Find it across npm, including transitive dependencies.