2 lines
4.3 KiB
JSON
2 lines
4.3 KiB
JSON
{"affected":[{"affectedData":[{"defaultStatus":"unaffected","packageURL":"pkg:npm/path-to-regexp","product":"path-to-regexp","vendor":"path-to-regexp","versions":[{"lessThan":"0.1.13","status":"affected","version":"0","versionType":"semver"}]}],"source":"ce714d77-add3-4f53-aff5-83d477b104bb"}],"configurations":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:pillarjs:path-to-regexp:*:*:*:*:*:node.js:*:*","matchCriteriaId":"AD9DFD27-4A53-4409-9DAC-8E326EBB3303","versionEndExcluding":"0.1.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"cveTags":[],"descriptions":[{"lang":"en","value":"Impact:\n\nA bad regular expression is generated any time you have three or more parameters within a single segment, separated by something that is not a period (.). For example, /:a-:b-:c or /:a-:b-:c-:d. The backtrack protection added in path-to-regexp@0.1.12 only prevents ambiguity for two parameters. With three or more, the generated lookahead does not block single separator characters, so capture groups overlap and cause catastrophic backtracking.\n\nPatches:\n\nUpgrade to path-to-regexp@0.1.13\n\nCustom regex patterns in route definitions (e.g., /:a-:b([^-/]+)-:c([^-/]+)) are not affected because they override the default capture group.\n\nWorkarounds:\n\nAll versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change /:a-:b-:c to /:a-:b([^-/]+)-:c([^-/]+).\n\nIf paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length."},{"lang":"es","value":"Impacto:\n\nSe genera una expresión regular incorrecta cada vez que se tienen tres o más parámetros dentro de un único segmento, separados por algo que no sea un punto (.). Por ejemplo, /:a-:b-:c o /:a-:b-:c-:d. La protección contra retroceso añadida en path-to-regexp@0.1.12 solo previene la ambigüedad para dos parámetros. Con tres o más, el 'lookahead' generado no bloquea los caracteres separadores individuales, por lo que los grupos de captura se superponen y causan un retroceso catastrófico.\n\nParches:\n\nActualizar a path-to-regexp@0.1.13\n\nLos patrones de expresiones regulares personalizados en las definiciones de ruta (por ejemplo, /:a-:b([^-/]+)-:c([^-/]+)) no se ven afectados porque anulan el grupo de captura predeterminado.\n\nSoluciones provisionales:\n\nTodas las versiones pueden ser parcheadas proporcionando una expresión regular personalizada para los parámetros después del primero en un único segmento. Siempre y cuando la expresión regular personalizada no coincida con el texto anterior al parámetro, estará seguro. Por ejemplo, cambie /:a-:b-:c a /:a-:b([^-/]+)-:c([^-/]+).\n\nSi las rutas no pueden ser reescritas y las versiones no pueden ser actualizadas, otra alternativa es limitar la longitud de la URL."}],"id":"CVE-2026-4867","lastModified":"2026-06-17T10:57:21.827","metrics":{"cvssMetricV31":[{"cvssData":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"exploitabilityScore":3.9,"impactScore":3.6,"source":"ce714d77-add3-4f53-aff5-83d477b104bb","type":"Secondary"}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"id":"CVE-2026-4867","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-03-26T16:52:08.810671Z","version":"2.0.3"}}]},"published":"2026-03-26T17:16:42.983","references":[{"source":"ce714d77-add3-4f53-aff5-83d477b104bb","tags":["Technical Description"],"url":"https://blakeembrey.com/posts/2024-09-web-redos"},{"source":"ce714d77-add3-4f53-aff5-83d477b104bb","tags":["Third Party Advisory"],"url":"https://cna.openjsf.org/security-advisories.html"},{"source":"ce714d77-add3-4f53-aff5-83d477b104bb","tags":["Not Applicable"],"url":"https://github.com/advisories/GHSA-9wv6-86v2-598j"}],"sourceIdentifier":"ce714d77-add3-4f53-aff5-83d477b104bb","vulnStatus":"Analyzed","weaknesses":[{"description":[{"lang":"en","value":"CWE-1333"}],"source":"ce714d77-add3-4f53-aff5-83d477b104bb","type":"Secondary"}]}
|