Описание
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the encode() function in lib/helpers/AxiosURLSearchParams.js contains a character mapping (charMap) at line 21 that reverses the safe percent-encoding of null bytes. After encodeURIComponent('\x00') correctly produces the safe sequence %00, the charMap entry '%00': '\x00' converts it back to a raw null byte. Primary impact is limited because the standard axios request flow is not affected. This vulnerability is fixed in 1.15.1 and 0.31.1.
A flaw was found in Axios, a software component used for making web requests. This vulnerability allows for the incorrect handling of null bytes, where a safely encoded null byte (%00) is converted back to its raw form (\x00). While the standard use of Axios is not affected, this could lead to unexpected data processing or integrity issues in certain specialized applications. The overall impact of this flaw is considered limited.
Отчет
Red Hat rates this vulnerability as Low impact with a CVSS score of 3.7, matching the upstream assessment. The vulnerable code only runs when URL search parameters are built through the AxiosURLSearchParams helper. Standard axios request methods (get, post, etc.) do not use this helper, and Red Hat products that bundle axios construct HTTP parameters from trusted internal inputs rather than unsanitized user data. For exploitation, an attacker would need to inject null bytes into user input that reaches this specific helper, which is unlikely in typical deployments. If a raw null byte reaches a downstream system that treats it as a string terminator, it could cause unexpected behavior such as parameter truncation, path traversal, or security filter bypass. The practical risk remains low because exploitation requires both unsanitized user input flowing into the AxiosURLSearchParams helper and a backend that interprets null bytes differently from the sending application.
Меры по смягчению последствий
Validate and sanitize user-controlled input to remove null bytes before passing it to URL parameter construction. Standard axios request methods (axios.get, axios.post with a params object) do not use the vulnerable AxiosURLSearchParams helper and are not affected.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Cryostat 4 | axios | Fix deferred | ||
| Cryostat 4 | cryostat-openshift-console-plugin-npm | Fix deferred | ||
| Gatekeeper 3 | gatekeeper/gatekeeper-rhel9 | Fix deferred | ||
| Migration Toolkit for Applications 8 | mta/mta-ui-rhel8 | Fix deferred | ||
| Migration Toolkit for Applications 8 | mta/mta-ui-rhel9 | Fix deferred | ||
| Migration Toolkit for Containers | rhmtc/openshift-migration-ui-rhel8 | Fix deferred | ||
| Multicluster Engine for Kubernetes | multicluster-engine/console-mce-rhel9 | Fix deferred | ||
| Network Observability Operator | network-observability/network-observability-console-plugin-compat-rhel9 | Fix deferred | ||
| Network Observability Operator | network-observability/network-observability-console-plugin-pf4-rhel9 | Fix deferred | ||
| Network Observability Operator | network-observability/network-observability-console-plugin-pf5-rhel9 | Fix deferred |
Показывать по
Дополнительная информация
Статус:
3.7 Low
CVSS3
Связанные уязвимости
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the encode() function in lib/helpers/AxiosURLSearchParams.js contains a character mapping (charMap) at line 21 that reverses the safe percent-encoding of null bytes. After encodeURIComponent('\x00') correctly produces the safe sequence %00, the charMap entry '%00': '\x00' converts it back to a raw null byte. Primary impact is limited because the standard axios request flow is not affected. This vulnerability is fixed in 1.15.1 and 0.31.1.
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the encode() function in lib/helpers/AxiosURLSearchParams.js contains a character mapping (charMap) at line 21 that reverses the safe percent-encoding of null bytes. After encodeURIComponent('\x00') correctly produces the safe sequence %00, the charMap entry '%00': '\x00' converts it back to a raw null byte. Primary impact is limited because the standard axios request flow is not affected. This vulnerability is fixed in 1.15.1 and 0.31.1.
Axios is a promise based HTTP client for the browser and Node.js. Prio ...
Axios: Null Byte Injection via Reverse-Encoding in AxiosURLSearchParams
3.7 Low
CVSS3