The vulnerability is a Server-Side Request Forgery (SSRF) in the @asymmetric-effort/specifyjs package, specifically within the secureFetch function located in core/src/shared/secure-fetch.ts. The root cause is that the fetch API, which secureFetch wraps, follows HTTP redirects by default. The secureFetch function would validate the initial URL using assertSecureUrl, but it would not validate the URLs of any subsequent redirects. This allowed an attacker to provide a valid https:// URL that redirects to an internal or insecure http:// URL, thus bypassing the security checks. The patch addresses this by changing the default behavior of secureFetch to prohibit redirects by setting redirect: 'error' in the options passed to fetch. Additionally, a related flaw in assertSecureUrl was fixed; previously, it would silently ignore unparseable URLs, which is also addressed in the patch by throwing an error. Therefore, secureFetch is the primary vulnerable function, as it is the entry point for the vulnerable operation, and assertSecureUrl is a key component in the vulnerable logic.