Some CORS middleware allow untrusted origins
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### Impact Some CORS middleware (more specifically those created by specifying two or more origin patterns whose hosts share a proper suffix) incorrectly allow some untrusted origins, thereby opening the door to cross-origin attacks from the untrusted origins in question. For example, specifying origin patterns `https://foo.com` and `https://bar.com` (in that order) would yield a middleware that would incorrectly allow untrusted origin `https://barfoo.com`. ### Patches Patched in v0.1.3. ### Workarounds None.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/jub0bs/cors (Go) | before 0.1.3 | 0.1.3 | Patch available | GHSA-vhxv-fg4m-p2w8 |
- github.com/jub0bs/cors (Go) Vendor— Affected before 0.1.3 Fixed in 0.1.3 Patch available GHSA-vhxv-fg4m-p2w8
Remediation
- Fix · GHSA-vhxv-fg4m-p2w8 github.com/jub0bs/cors (Go) Fixed in 0.1.3 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-vhxv-fg4m-p2w8
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences