GHSA-2q7r-29rg-6m5h

Suggest an improvement
Source
https://github.com/advisories/GHSA-2q7r-29rg-6m5h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-2q7r-29rg-6m5h/GHSA-2q7r-29rg-6m5h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2q7r-29rg-6m5h
Aliases
Published
2025-12-02T00:38:57Z
Modified
2025-12-02T01:30:13Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
fastify-reply-from affected by bypass of reply forwarding
Details

Summary

By crafting a malicious URL, an attacker could access routes that are not allowed, even though the reply.from is defined for specific routes in @fastify/reply-from.

Details

An attacker can bypass the route defined by the @fastify/reply-from package by adding a .. symbol, which, for curl version 8.7.1, is %2e%2e.

Impact

Everyone is using this package with the routes option to protect a 3rd-party resource.

Database specific
{
    "cwe_ids":  [
        "CWE-441"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-12-02T00:38:57Z",
    "nvd_published_at":  "2025-12-01T23:15:54Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / @fastify/reply-from

Package

Name
@fastify/reply-from
View open source insights on deps.dev
Purl
pkg:npm/%40fastify/reply-from

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
12.5.0

Database specific

last_known_affected_version_range
"<= 12.4.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-2q7r-29rg-6m5h/GHSA-2q7r-29rg-6m5h.json"