Описание
Undici is an HTTP/1.1 client written from scratch for Node.js. Prior to version 5.26.2, Undici already cleared Authorization headers on cross-origin redirects, but did not clear Cookie
headers. By design, cookie
headers are forbidden request headers, disallowing them to be set in RequestInit.headers in browser environments. Since undici handles headers more liberally than the spec, there was a disconnect from the assumptions the spec made, and undici's implementation of fetch. As such this may lead to accidental leakage of cookie to a third-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the third party site. This was patched in version 5.26.2. There are no known workarounds.
A flaw was found in the Undici node package due to the occurrence of Cross-origin requests, possibly leading to a cookie header leakage. By default, cookie headers are forbidden request headers, and they must be enabled. This flaw allows a malicious user to access this leaked cookie if they have control of the redirection.
Отчет
Since this requires a non-standard configuration, as well as control of the redirection, Red Hat rates this as having a Low impact.
Меры по смягчению последствий
No current mitigation is available.
Затронутые пакеты
Платформа | Пакет | Состояние | Рекомендация | Релиз |
---|---|---|---|---|
OpenShift Serverless | node-undici | Affected | ||
Red Hat Developer Hub | rhdh-operator-container | Affected | ||
Red Hat Developer Hub | rhdh/rhdh-hub-rhel9 | Affected | ||
Red Hat Enterprise Linux 8 | nodejs:16/nodejs | Fix deferred | ||
Red Hat Enterprise Linux 9 | nodejs | Fix deferred | ||
Red Hat Enterprise Linux 9 | nodejs:20/nodejs | Affected | ||
Red Hat OpenShift Dev Spaces | devspaces/dashboard-rhel8 | Affected | ||
Red Hat Software Collections | rh-nodejs14-nodejs | Fix deferred | ||
Red Hat Enterprise Linux 8 | nodejs | Fixed | RHSA-2023:5869 | 18.10.2023 |
Red Hat Enterprise Linux 8 | nodejs | Fixed | RHSA-2023:7205 | 14.11.2023 |
Показывать по
Дополнительная информация
Статус:
EPSS
3.9 Low
CVSS3
Связанные уязвимости
Undici is an HTTP/1.1 client written from scratch for Node.js. Prior to version 5.26.2, Undici already cleared Authorization headers on cross-origin redirects, but did not clear `Cookie` headers. By design, `cookie` headers are forbidden request headers, disallowing them to be set in RequestInit.headers in browser environments. Since undici handles headers more liberally than the spec, there was a disconnect from the assumptions the spec made, and undici's implementation of fetch. As such this may lead to accidental leakage of cookie to a third-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the third party site. This was patched in version 5.26.2. There are no known workarounds.
Undici is an HTTP/1.1 client written from scratch for Node.js. Prior to version 5.26.2, Undici already cleared Authorization headers on cross-origin redirects, but did not clear `Cookie` headers. By design, `cookie` headers are forbidden request headers, disallowing them to be set in RequestInit.headers in browser environments. Since undici handles headers more liberally than the spec, there was a disconnect from the assumptions the spec made, and undici's implementation of fetch. As such this may lead to accidental leakage of cookie to a third-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the third party site. This was patched in version 5.26.2. There are no known workarounds.
Undici is an HTTP/1.1 client written from scratch for Node.js. Prior t ...
Undici's cookie header not cleared on cross-origin redirect in fetch
EPSS
3.9 Low
CVSS3