9.3critical
Some CORS middleware allow untrusted origins
- Severity
- 9.3critical CVSS:3.1 by GitHub
- Published
- Last changed
- Also known as
- GO-2024-2812
Description
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.9.0.
Workarounds
None.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/jub0bs/fcors (Go) | before 0.9.0 | GitHub Advisory Database, Go Vulnerability Database |
What each source says
GitHub Advisory Database
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.9.0.
Workarounds
None.
Go Vulnerability Database
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".
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-v84h-653v-4pq9 changed 2026-02-04 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2812 changed 2026-02-04 | CC-BY-4.0 |