Jordan Harband
c8a2a81f92
[Fix] nvm_download, nvm_get_latest, install.sh: pass -q to curl first, so .curlrc is ignored again
...
curl only skips reading `.curlrc` when `-q` is its very first argument;
anywhere else, the config file has already been read by the time `-q` is seen.
a4f89c62 added `-q` to every curl call so that a user's `.curlrc` would not affect nvm,
but 6a3b1dd2 (v0.33.2)
put `--compressed` in front of it everywhere.
bd090ef7 (v0.40.0)
moved it back to the front in `nvm.sh`'s `nvm_download`,
and then 6d870d18 (v0.40.5) began building those arguments with `set --`,
prepending `--compressed` after `-q`,
so whenever curl supports compression, `-q` was second again.
`nvm_get_latest` and `install.sh`'s `nvm_download` have passed
`--compressed` before `-q` since v0.33.2.
Pass `-q` first in all three places.
Settings in a user's `.curlrc`
(such as a proxy, CA bundle, or `write-out`)
no longer apply to nvm's own curl calls,
as was intended,
and as in v0.40.0 through v0.40.4 for `nvm_download`;
the corresponding environment variables
(eg, `https_proxy`, `CURL_CA_BUNDLE`) still apply.
The existing `nvm_get_latest` test pinned the old argument order,
so its expectation is updated
Discovered by Anthropic's OSS Scanner, as ANT-2026-DESJ2ESZ; the scanner reported it as a vulnerability, but it is not one.
2026-10-23 08:53:58 -07:00
..
2026-09-23 21:35:43 +00:00
2026-04-23 17:16:32 +03:00
2026-04-23 17:16:32 +03:00
2026-10-22 20:10:42 -07:00
2026-04-23 17:16:32 +03:00
2026-07-09 22:40:07 -07:00
2026-01-26 21:41:57 -08:00
2026-03-14 09:38:04 -07:00
2026-07-24 10:54:17 -07:00
2026-10-22 20:10:42 -07:00
2026-07-24 10:51:53 -07:00
2026-01-26 21:41:57 -08:00
2026-09-23 21:35:43 +00:00
2026-09-23 21:35:43 +00:00
2026-05-15 23:08:37 -07:00
2026-01-26 21:41:57 -08:00
2026-10-01 09:51:16 +05:30
2026-01-26 21:41:57 -08:00
2026-07-24 10:55:58 -07:00
2026-01-26 21:41:57 -08:00
2026-03-13 15:26:07 -04:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-09-21 10:01:34 +08:00
2026-01-26 21:41:57 -08:00
2026-09-28 15:05:28 +09:00
2026-10-09 21:16:17 -07:00
2026-09-08 11:01:03 -07:00
2026-10-01 16:35:00 +05:00
2026-01-26 21:41:57 -08:00
2016-11-14 12:28:41 +08:00
2026-01-26 21:41:57 -08:00
2026-09-04 14:08:01 -07:00
2026-03-13 15:26:07 -04:00
2026-07-08 13:02:41 -07:00
2026-07-08 13:02:41 -07:00
2026-07-08 13:02:41 -07:00
2026-10-06 14:01:11 -03:00
2026-06-03 13:12:31 -07:00
2026-07-08 13:03:16 -07:00
2026-10-23 08:53:58 -07:00
2026-06-02 17:41:44 -07:00
2026-09-02 19:36:04 -07:00
2026-01-26 21:41:57 -08:00
2026-03-14 14:30:31 -07:00
2026-06-03 13:09:07 -07:00
2026-10-06 17:54:48 -03:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-09-04 14:08:01 -07:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-10-06 14:23:02 -03:00
2026-10-06 14:23:02 -03:00
2026-09-30 16:09:09 +09:00
2026-01-26 21:41:57 -08:00
2026-03-13 15:26:07 -04:00
2026-06-03 13:11:26 -07:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2025-11-16 14:48:10 +05:30
2026-07-08 13:03:16 -07:00
2026-10-22 20:10:42 -07:00
2026-03-13 15:26:07 -04:00
2026-09-02 19:40:47 -07:00
2026-10-06 14:23:02 -03:00
2026-01-26 21:41:57 -08:00
2026-01-27 10:31:07 -08:00
2026-09-29 17:08:36 +09:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-09-04 09:16:10 -07:00
2026-10-05 10:02:48 -07:00
2026-01-26 21:41:57 -08:00
2026-07-24 10:50:47 -07:00
2026-03-24 12:44:21 -07:00
2026-03-13 15:26:07 -04:00
2026-07-24 10:55:58 -07:00
2026-09-30 16:09:09 +09:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-03-24 12:44:21 -07:00
2026-01-26 21:41:57 -08:00
2026-10-01 09:51:16 +05:30
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-10-22 20:10:42 -07:00
2026-10-06 18:01:38 -03:00
2026-10-22 20:10:42 -07:00
2026-07-08 23:14:23 -07:00
2026-10-22 20:10:42 -07:00
2026-01-26 21:41:57 -08:00
2026-03-13 15:26:07 -04:00
2026-01-26 21:41:57 -08:00
2026-07-15 13:46:52 -07:00
2026-03-13 15:26:07 -04:00
2026-03-13 15:26:07 -04:00
2026-03-13 15:26:07 -04:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-07-09 22:35:15 -07:00
2026-09-03 20:54:28 -07:00
2026-03-13 15:26:07 -04:00
2026-01-26 21:41:57 -08:00
2026-09-03 15:12:34 -07:00
2026-03-13 15:26:07 -04:00
2026-03-13 15:26:07 -04:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-03-13 15:26:07 -04:00
2026-06-10 15:16:23 -07:00
2026-07-24 10:55:58 -07:00
2026-10-22 20:10:42 -07:00
2026-03-13 15:26:07 -04:00
2026-03-14 09:39:20 -07:00
2026-10-22 20:10:42 -07:00
2026-10-01 16:35:00 +05:00
2026-01-27 10:31:07 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-09-11 16:49:46 +08:00
2026-01-26 21:41:57 -08:00
2026-03-13 15:26:07 -04:00
2026-07-24 10:51:53 -07:00
2026-10-06 12:43:22 -03:00
2026-01-26 21:41:57 -08:00
2026-10-07 15:30:01 -03:00
2026-10-03 12:49:00 +05:30
2026-01-26 21:41:57 -08:00
2022-10-13 20:16:42 -07:00
2026-01-26 21:41:57 -08:00
2026-10-23 08:53:58 -07:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-01-26 21:41:57 -08:00
2026-05-25 11:14:39 +10:00
2026-09-03 20:44:59 -07:00