原始 OSV JSON{
"id": "GHSA-8pvw-jcv7-9cmj",
"aliases": [
"CVE-2026-7120"
],
"details": "### Impact\n\n`@fastify/static` evaluates the `allowedPath` callback before normalizing dot segments and duplicate slashes in the pathname used for file resolution. Non-canonical pathnames such as `//file`, `/./file`, or `/public/../private/file` bypass `allowedPath` filtering while resolving to the intended file on disk.\n\nApplications that use `allowedPath` as a security boundary to restrict access to specific static files or path subtrees may unintentionally expose files that were intended to be denied.\n\n### Patches\n\nUpgrade to `@fastify/static` >= 10.1.2.\n\n### Workarounds\n\nNone. Upgrade to the patched version.",
"summary": "@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "10.1.2"
}
]
}
],
"package": {
"name": "@fastify/static",
"ecosystem": "npm"
},
"database_specific": {
"last_known_affected_version_range": "<= 10.1.1"
}
}
],
"modified": "2026-07-24T16:43:44Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"published": "2026-07-24T16:43:44Z",
"references": [
{
"url": "https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-7120",
"type": "ADVISORY"
},
{
"url": "https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63",
"type": "WEB"
},
{
"url": "https://cna.openjsf.org/security-advisories.html",
"type": "WEB"
},
{
"url": "https://github.com/fastify/fastify-static",
"type": "PACKAGE"
},
{
"url": "https://github.com/fastify/fastify-static/releases/tag/v10.1.2",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-180"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-07-23T04:16:33Z",
"github_reviewed_at": "2026-07-24T16:43:44Z"
}
}