p PatchFirst

CVE-2026-118664

CVE-2026-118664 · decode-uri-component: Denial of service via quadratic replacement of percent-encoded runs

Здесь приведены факты из открытых источников об уязвимостях. Перед обновлением ознакомьтесь с исходным сообщением.

decode-uri-component provides a more robust alternative to decodeURIComponent. Prior to 0.5.1, decodeUriComponent in index.js falls back to customDecodeURIComponent after native decoding throws, and the fallback collects every distinct percent-encoded run before performing a full-string regular-expression replacement for each entry. Malformed input containing many distinct runs can therefore make both the number of replacements and the scanned input length grow together, causing quadratic CPU consumption and blocking the Node.js event loop; request-body inputs can reach the demonstrated size, while ordinary URL header limits reduce the practical delay. This issue is fixed in version 0.5.1.

CVSS 8.2 · Высокий · EPSS 0,3% · Есть исправление

Опубликовано
Обновлено

Стек: node

Затронутые продукты и версии

  • decode-uri-component

    Версии
    • < 0.5.1: Затронуто

    Нет опубликованного исправления

  • decode-uri-component npm

    Затронутые диапазоны версий
    • SEMVER: < 0.5.1

    Обновитесь до 0.5.1

Первоисточники

Проверьте свой сервер →