Vulnerabilities/

Undici's cookie header not cleared on cross-origin redirect in fetch

Severity:
Low

Description

Undici clears Authorization headers on cross-origin redirects, but does not clear Cookie headers. By design, cookie headers are forbidden request headers, disallowing them to be set in RequestInit.headers in browser environments.

Recommendation

Update the undici package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
undici
Anything's wrong? Let us know Last updated on February 16, 2024

This issue is available in SmartScanner Professional

See Pricing