{"id":"CVE-2025-32442","aliases":[],"summary":"Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass","published_at":"2025-04-18T15:59:06.67Z","modified_at":"2026-03-16T08:31:22Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.007439999841153622,"percentile":0.5552600026130676,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"Fastify is a fast and low overhead web framework, for Node.js. In versions 5.0.0 to 5.3.0 as well as version 4.29.0, applications that specify different validation strategies for different content types have a possibility to bypass validation by providing a _slightly altered_ content type such as with different casing or altered whitespacing before `;`. This was patched in v5.3.1, but the initial patch did not cover all problems. This has been fully patched in v5.3.2 and v4.29.1. A workaround involves not specifying individual content types in the schema.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"fastify/fastify","versions":[">= 5.0.0, < 5.3.2","= 4.29.0"],"provider":"cvelistv5","source":"CVE-2025-32442","relation":"self"},{"ecosystem":"NVD","package":"fastify:fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.3.2"}]}],"versions":["4.29.0"],"fixed":["5.3.2"],"provider":"nvd","source":"CVE-2025-32442","relation":"self"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.7.4-tuxcare.0"},{"fixed":"5.7.4-tuxcare.2"}]}],"versions":["5.7.4","5.7.4-tuxcare.1"],"fixed":["5.7.4-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1789755224","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.1-tuxcare.0"},{"fixed":"5.2.1-tuxcare.1"}]}],"versions":["5.2.1"],"fixed":["5.2.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789906142","relation":"upstream"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"not_affected","packages":["openshift-serverless-1/kn-plugin-func-func-util-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-32442"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-dashboard-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-32442"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1789755224","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1789755224","published_at":"2026-09-18T18:13:44Z","modified_at":"2026-10-15T09:47:56.115542Z","summary":"TuxCare security update for fastify (2 CVEs)","details":"TuxCare rebuilt fastify to address 2 CVEs. Fixed in 5.7.4-tuxcare.2.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.7.4-tuxcare.0"},{"fixed":"5.7.4-tuxcare.2"}]}],"versions":["5.7.4","5.7.4-tuxcare.1"],"fixed":["5.7.4-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1789755224","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1789906142","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1789906142","published_at":"2026-09-20T12:09:02Z","modified_at":"2026-10-15T09:46:02.760386Z","summary":"TuxCare security update for fastify (3 CVEs)","details":"TuxCare rebuilt fastify to address 3 CVEs. Fixed in 5.2.1-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.1-tuxcare.0"},{"fixed":"5.2.1-tuxcare.1"}]}],"versions":["5.2.1"],"fixed":["5.2.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789906142","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2025-32442","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-32442","license":"CC-BY-4.0","published_at":"2025-04-18T15:59:06.67Z","modified_at":"2025-08-22T20:50:43.059Z","summary":"Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass","details":"Fastify is a fast and low overhead web framework, for Node.js. In versions 5.0.0 to 5.3.0 as well as version 4.29.0, applications that specify different validation strategies for different content types have a possibility to bypass validation by providing a _slightly altered_ content type such as with different casing or altered whitespacing before `;`. This was patched in v5.3.1, but the initial patch did not cover all problems. This has been fully patched in v5.3.2 and v4.29.1. A workaround involves not specifying individual content types in the schema.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2025-32442"}],"affected":[{"ecosystem":"CVE","package":"fastify/fastify","versions":[">= 5.0.0, < 5.3.2","= 4.29.0"],"provider":"cvelistv5","source":"CVE-2025-32442","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4"},{"type":"WEB","url":"https://hackerone.com/reports/3087928"}]},{"provider":"nvd","source_id":"CVE-2025-32442","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32442","severity":[],"affected":[{"ecosystem":"NVD","package":"fastify:fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.3.2"}]}],"versions":["4.29.0"],"fixed":["5.3.2"],"provider":"nvd","source":"CVE-2025-32442","relation":"self"}],"product_status":[],"references":[]},{"provider":"redhat-vex","source_id":"CVE-2025-32442","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-32442","license":"CC-BY-4.0","published_at":"2025-04-18T15:59:06.67Z","modified_at":"2026-03-16T08:31:22Z","summary":"Fastify: Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass","details":"A flaw was found in Fastify. In affected versions, applications that specify different validation strategies for various content types can bypass validation by using a _slightly altered_ content type, such as with different casing or altered whitespace before `;`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2025-32442"},{"type":"Red Hat","score":"Important","source":"CVE-2025-32442"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"not_affected","packages":["openshift-serverless-1/kn-plugin-func-func-util-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-32442"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-dashboard-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-32442"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-32442.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-32442"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2361006"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-32442"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32442"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418"},{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc"},{"type":"WEB","url":"https://hackerone.com/reports/3087928"}]}],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4"},{"type":"WEB","url":"https://hackerone.com/reports/3087928"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-32442.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-32442"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2361006"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-32442"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32442"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1789755224","url":"https://osv.dev/vulnerability/CLSA-2026-1789755224","modified_at":"2026-10-15T09:47:56.115542Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1789906142","url":"https://osv.dev/vulnerability/CLSA-2026-1789906142","modified_at":"2026-10-15T09:46:02.760386Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2025-32442","url":"https://www.cve.org/CVERecord?id=CVE-2025-32442","license":"CC-BY-4.0","modified_at":"2025-08-22T20:50:43.059Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2025-32442","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32442","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-32442","url":"https://access.redhat.com/security/cve/CVE-2025-32442","license":"CC-BY-4.0","modified_at":"2026-03-16T08:31:22Z","relation":"self"}]}
