GHSA-j5qp-p44g-2m49: @asymmetric-effort/specifyjs: No redirect target validation in secureFetch
The @asymmetric-effort/specifyjs package contained a vulnerability in its secureFetch function where redirect targets were not validated. The initial URL was checked for security, but subsequent redirects followed by the fetch API could lead to unvalidated and potentially insecure destinations. This could allow a request to a trusted HTTPS URL to be redirected to an untrusted or internal HTTP service. The issue was fixed in version 0.2.136 by changing the default redirect behavior to reject any redirects unless explicitly overridden by the caller.
AI Analysis
Technical Summary
The vulnerability in @asymmetric-effort/specifyjs (prior to v0.2.136) involves the secureFetch function's lack of validation for redirect targets. While the initial request URL was validated by assertSecureUrl, the fetch API's default behavior to follow redirects (up to 20 hops) was not restricted. This allowed a request to a validated HTTPS URL to be redirected to an unvalidated and potentially insecure HTTP URL, such as an internal service. The fix implemented in v0.2.136 sets secureFetch to default to redirect: 'error', which rejects redirects unless the caller explicitly opts in to follow them.
Potential Impact
An attacker could exploit this vulnerability by causing a request to a trusted HTTPS endpoint to be redirected to an untrusted or internal HTTP endpoint without validation. This could lead to unintended data exposure or interaction with internal services that were not meant to be accessed externally. The vulnerability is rated as medium severity and does not require privileges or user interaction to exploit.
Mitigation Recommendations
This vulnerability is fixed in @asymmetric-effort/specifyjs version 0.2.136 and later. Users should upgrade to v0.2.136 or above to ensure secureFetch rejects redirects by default. If redirects are necessary, callers must explicitly specify { redirect: 'follow' } and ensure they trust the redirect targets. No additional mitigation is required beyond upgrading or carefully managing redirect options.
GHSA-j5qp-p44g-2m49: @asymmetric-effort/specifyjs: No redirect target validation in secureFetch
Description
The @asymmetric-effort/specifyjs package contained a vulnerability in its secureFetch function where redirect targets were not validated. The initial URL was checked for security, but subsequent redirects followed by the fetch API could lead to unvalidated and potentially insecure destinations. This could allow a request to a trusted HTTPS URL to be redirected to an untrusted or internal HTTP service. The issue was fixed in version 0.2.136 by changing the default redirect behavior to reject any redirects unless explicitly overridden by the caller.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in @asymmetric-effort/specifyjs (prior to v0.2.136) involves the secureFetch function's lack of validation for redirect targets. While the initial request URL was validated by assertSecureUrl, the fetch API's default behavior to follow redirects (up to 20 hops) was not restricted. This allowed a request to a validated HTTPS URL to be redirected to an unvalidated and potentially insecure HTTP URL, such as an internal service. The fix implemented in v0.2.136 sets secureFetch to default to redirect: 'error', which rejects redirects unless the caller explicitly opts in to follow them.
Potential Impact
An attacker could exploit this vulnerability by causing a request to a trusted HTTPS endpoint to be redirected to an untrusted or internal HTTP endpoint without validation. This could lead to unintended data exposure or interaction with internal services that were not meant to be accessed externally. The vulnerability is rated as medium severity and does not require privileges or user interaction to exploit.
Mitigation Recommendations
This vulnerability is fixed in @asymmetric-effort/specifyjs version 0.2.136 and later. Users should upgrade to v0.2.136 or above to ensure secureFetch rejects redirects by default. If redirects are necessary, callers must explicitly specify { redirect: 'follow' } and ensure they trust the redirect targets. No additional mitigation is required beyond upgrading or carefully managing redirect options.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-j5qp-p44g-2m49
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a46ecbb27e9c7971943cdf7
Added to database: 07/02/2026, 22:56:59 UTC
Last enriched: 07/02/2026, 23:14:33 UTC
Last updated: 07/03/2026, 00:02:12 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.