GHSA-vhxv-fg4m-p2w8
JSON

9.3critical

Some CORS middleware allow untrusted origins

Severity
9.3critical CVSS:3.1 by GitHub
Published
Last changed
Also known as
GO-2024-2813

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

Workarounds

None.

Affected

Product or packageVersionsReported by
github.com/jub0bs/cors (Go)before 0.1.3GitHub 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.1.3.

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

SourceRecordLicence
GitHub Advisory DatabaseGHSA-vhxv-fg4m-p2w8 changed 2026-02-04CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2813 changed 2026-02-04CC-BY-4.0