got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Your version
6.7.1 is the newest release of 6.x.
Security
1 advisory affects 6.3.0; 11.8.5 fixes them
- ModerateGot allows a redirect to a UNIX socketGHSA-pfrx-2q88-qq97 · 19 Jun 2022Fixed in 11.8.5
Release note
followRedirect option
This option disables following redirects and got will not treat them as errors:
const res = await got(`google.com`, {followRedirect: false});
res.statusCode === 302; // trueBy default this option is true, so no major changes in code are needed.
Changes
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.