blob: ed239d888f74079a954744aa3c7d63c44effe7e5 [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2024-2812",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"GHSA-v84h-653v-4pq9"
],
"related": [
"GHSA-vhxv-fg4m-p2w8"
],
"summary": "Some CORS middleware allow untrusted origins in github.com/jub0bs/fcors",
"details": "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.\n\nFor 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\".",
"affected": [
{
"package": {
"name": "github.com/jub0bs/fcors",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.9.0"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/jub0bs/fcors/internal/radix",
"symbols": [
"Tree.Contains",
"Tree.Insert",
"lastByteIn",
"lengthOfCommonSuffix",
"node.add",
"splitRight"
]
}
]
}
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/jub0bs/fcors/security/advisories/GHSA-v84h-653v-4pq9"
},
{
"type": "FIX",
"url": "https://github.com/jub0bs/fcors/commit/b5dcb889a49def37d7d9c25deb7135f4eb45625e"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2024-2812",
"review_status": "REVIEWED"
}
}