CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2026-3419

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 5.3 · medium

Fastify's Missing End Anchor in "subtypeNameReg" Allows Malformed Content-Types to Pass Validation

Fastify incorrectly accepts malformed `Content-Type` headers containing trailing characters after the subtype token, in violation of RFC 9110 §8.3.1(https://httpwg.org/specs/rfc9110.html#field.content-type). For example, a request sent with Content-Type: application/json garbage passes validation and is processed normally, rather than being rejected with 415 Unsupported Media Type. When regex-based content-type parsers are in use (a documented Fastify feature), the malformed value is matched against registered parsers using the full string including the trailing garbage. This means a request with an invalid content-type may be routed to and processed by a parser it should never have reached. Impact: An attacker can send requests with RFC-invalid Content-Type headers that bypass validity checks, reach content-type parser matching, and be processed by the server. Requests that should be rejected at the validation stage are instead handled as if the content-type were valid. Workarounds: Deploy a WAF rule to protect against this Fix: The fix is available starting with v5.8.1.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.388% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 5.3 · published by openjs
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:58:23.562Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T12:58:23.562ZCVE Program
epssverified2026-11-19T16:04:49.143ZFIRST EPSS
patchesverified2026-11-19T12:52:30.987ZOSV
affectedverified2026-11-19T12:58:23.562ZCVE Program
lifecycleverified2026-11-19T12:58:23.562ZCVE Program

Affected versions and configuration

fastify fastify; default status: unaffected: 5.7.2 to < 5.8.1 [affected; scheme: semver]; 5.8.1 [unaffected; scheme: semver]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "fastify",
      "product": "fastify",
      "versions": [
        {
          "status": "affected",
          "version": "5.7.2",
          "lessThan": "5.8.1",
          "versionType": "semver"
        },
        {
          "status": "unaffected",
          "version": "5.8.1",
          "versionType": "semver"
        }
      ],
      "packageURL": "pkg:npm/fastify",
      "defaultStatus": "unaffected"
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-3419",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "yes"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-03-09T14:55:13.971640Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-03-09T14:55:21.011Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-573f-x89g-hqp9",
  "aliases": [
    "CVE-2026-3419"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "5.7.2"
            },
            {
              "fixed": "5.8.1"
            }
          ]
        }
      ],
      "package": {
        "name": "fastify",
        "purl": "pkg:npm/fastify",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-573f-x89g-hqp9/GHSA-573f-x89g-hqp9.json",
        "last_known_affected_version_range": "<= 5.8.0"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/fastify/fastify/security/advisories/GHSA-573f-x89g-hqp9",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-3419",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/fastify/fastify/commit/67f6c9b32cb3623d3c9470cc17ed830dd2f083d7",
      "type": "WEB"
    },
    {
      "url": "https://cna.openjsf.org/security-advisories.html",
      "type": "WEB"
    },
    {
      "url": "https://github.com/advisories/GHSA-573f-x89g-hqp9",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/fastify/fastify",
      "type": "PACKAGE"
    },
    {
      "url": "https://httpwg.org/specs/rfc9110.html#field.content-type",
      "type": "WEB"
    },
    {
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-3419",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-185"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2026-03-06T18:16:22Z",
    "github_reviewed_at": "2026-03-05T21:29:54Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packagefastifyNot a distribution channel5.8.1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history