Vulnerabilities/

Incorrect Authorization in cross-fetch

Severity:
Medium

Description

When fetching a remote url with Cookie if it get Location response header then it will follow that url and try to fetch that url with provided cookie . So cookie is leaked here to thirdparty. Ex: you try to fetch example.com with cookie and if it get redirect url to attacker.com then it fetch that redirect url with provided cookie .

Recommendation

Update the cross-fetch package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
cross-fetch
Anything's wrong? Let us know Last updated on January 27, 2023

This issue is available in SmartScanner Professional

See Pricing