{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-18427",
        "assignerOrgId": "ce714d77-add3-4f53-aff5-83d477b104bb",
        "state": "PUBLISHED",
        "assignerShortName": "openjs",
        "dateReserved": "2026-07-30T18:18:39.071Z",
        "datePublished": "2026-08-06T14:52:26.958Z",
        "dateUpdated": "2026-08-06T15:44:54.638Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "ce714d77-add3-4f53-aff5-83d477b104bb",
                "shortName": "openjs",
                "dateUpdated": "2026-08-06T14:52:26.958Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "@fastify/static before version 10.1.3 contains an incomplete fix for a previous route guard bypass. The static file handler rejected only parent directory segments, but it did not canonicalize dot segments, duplicate slashes, encoded dots, or backslashes before route matching and before delegating to the send layer. As a result, an unauthenticated attacker could request a file protected by a route based guard using a non canonical path form that misses the guarded route yet resolves back onto the protected file, disclosing its contents. Applications that protect a subtree of the static root with a route based guard are affected, while applications relying on the allowedPath option are not. This is fixed in @fastify/static 10.1.3, which canonicalizes the pathname, including rejecting backslashes, on the path used for routing and serving.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "@fastify/static before version 10.1.3 contains an incomplete fix for a previous route guard bypass. The static file handler rejected only parent directory segments, but it did not canonicalize dot segments, duplicate slashes, encoded dots, or backslashes before route matching and before delegating to the send layer. As a result, an unauthenticated attacker could request a file protected by a route based guard using a non canonical path form that misses the guarded route yet resolves back onto the protected file, disclosing its contents. Applications that protect a subtree of the static root with a route based guard are affected, while applications relying on the allowedPath option are not. This is fixed in @fastify/static 10.1.3, which canonicalizes the pathname, including rejecting backslashes, on the path used for routing and serving."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "@fastify/static",
                    "product": "@fastify/static",
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "versionType": "semver",
                            "status": "affected",
                            "version": "0",
                            "lessThan": "10.1.3"
                        },
                        {
                            "versionType": "semver",
                            "status": "unaffected",
                            "version": "10.1.3"
                        }
                    ],
                    "packageURL": "pkg:npm/@fastify/static"
                }
            ],
            "references": [
                {
                    "url": "https://github.com/fastify/fastify-static/security/advisories/GHSA-423g-23ch-w7c6"
                },
                {
                    "url": "https://cna.openjsf.org/security-advisories.html"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "reporter",
                    "value": "alimony"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "mcollina"
                },
                {
                    "lang": "en",
                    "type": "remediation reviewer",
                    "value": "UlisesGascon"
                }
            ],
            "title": "@fastify/static vulnerable to route guard bypass via non-canonical path segments",
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
                        "baseScore": 7.5,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-22",
                            "lang": "en",
                            "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-436",
                            "lang": "en",
                            "description": "CWE-436: Interpretation Conflict",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "x_generator": {
                "engine": "cve-kit 1.0.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-08-06T15:44:48.667561Z",
                                "id": "CVE-2026-18427",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-08-06T15:44:54.638Z"
                }
            }
        ]
    }
}