{"id":"GHSA-j5qp-p44g-2m49","aliases":[],"status":"published","title":"@asymmetric-effort/specifyjs: No redirect target validation in secureFetch","description":"## Finding\n\n**Location**: `core/src/shared/secure-fetch.ts`\n\n`assertSecureUrl` validated only the initial request URL. The `fetch()` API follows redirects by default (up to 20 hops). A request to a valid `https://` URL could redirect to `http://internal-service/` or other unvalidated destinations.\n\n## Status\n\n**Fixed in v0.2.136** — `secureFetch` now defaults to `redirect: 'error'` which rejects any redirect. Callers can override with `{ redirect: 'follow' }` if they trust the target.","severity":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-918"],"published":"2026-07-02T19:08:04Z","modified":"2026-09-10T03:51:11Z","fixes":[{"ecosystem":"npm","package":"@asymmetric-effort/specifyjs","fixed_in":["0.2.136"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@asymmetric-effort/specifyjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.136"}]}]},{"source":"osv","ecosystem":"npm","package":"@asymmetric-effort/specifyjs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.136"}]}]}],"references":[{"url":"https://github.com/asymmetric-effort/specifyjs/security/advisories/GHSA-j5qp-p44g-2m49","tags":["web"]},{"url":"https://github.com/asymmetric-effort/specifyjs/commit/25d1fb491d99479efdf501f5f75e0bb80c908f0a","tags":["web"]},{"url":"https://github.com/advisories/GHSA-j5qp-p44g-2m49"},{"url":"https://github.com/asymmetric-effort/specifyjs","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-j5qp-p44g-2m49","title":"@asymmetric-effort/specifyjs: No redirect target validation in secureFetch","description":"## Finding\n\n**Location**: `core/src/shared/secure-fetch.ts`\n\n`assertSecureUrl` validated only the initial request URL. The `fetch()` API follows redirects by default (up to 20 hops). A request to a valid `https://` URL could redirect to `http://internal-service/` or other unvalidated destinations.\n\n## Status\n\n**Fixed in v0.2.136** — `secureFetch` now defaults to `redirect: 'error'` which rejects any redirect. Callers can override with `{ redirect: 'follow' }` if they trust the target.","status":"published","published":"2026-07-02T19:08:04Z","modified":"2026-07-02T19:08:05Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:40:37.437888Z"}],"osv":[{"id":"GHSA-j5qp-p44g-2m49","title":"@asymmetric-effort/specifyjs: No redirect target validation in secureFetch","description":"## Finding\n\n**Location**: `core/src/shared/secure-fetch.ts`\n\n`assertSecureUrl` validated only the initial request URL. The `fetch()` API follows redirects by default (up to 20 hops). A request to a valid `https://` URL could redirect to `http://internal-service/` or other unvalidated destinations.\n\n## Status\n\n**Fixed in v0.2.136** — `secureFetch` now defaults to `redirect: 'error'` which rejects any redirect. Callers can override with `{ redirect: 'follow' }` if they trust the target.","status":"published","published":"2026-07-02T19:08:04Z","modified":"2026-09-10T03:51:11.564537342Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T15:46:49.977351Z"}]}}
