# GHSA-j5qp-p44g-2m49: @asymmetric-effort/specifyjs: No redirect target validation in secureFetch

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-02T19:08:04.000Z
- Modified: 2026-09-10T03:51:11.564Z
- Weaknesses: CWE-918

## Description

## Finding

**Location**: `core/src/shared/secure-fetch.ts`

`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.

## Status

**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.

(As written by GitHub Advisory Database.)

## Affected

- @asymmetric-effort/specifyjs (npm): before 0.2.136

## References

- <https://github.com/asymmetric-effort/specifyjs/security/advisories/GHSA-j5qp-p44g-2m49> (web)
- <https://github.com/asymmetric-effort/specifyjs/commit/25d1fb491d99479efdf501f5f75e0bb80c908f0a> (web)
- <https://github.com/asymmetric-effort/specifyjs> (package)

## Sources

- GitHub Advisory Database: [GHSA-j5qp-p44g-2m49](https://github.com/advisories/GHSA-j5qp-p44g-2m49), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-j5qp-p44g-2m49 · Whole record: https://cve.day/GHSA-j5qp-p44g-2m49.json · Rebuilt by cve.day 2026-11-25T22:56:45.722Z
