GO-2024-2812

See a problem?
Source
https://pkg.go.dev/vuln/GO-2024-2812
Import Source
https://vuln.go.dev/ID/GO-2024-2812.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2024-2812
Aliases
Related
Published
2024-05-21T15:08:01Z
Modified
2024-05-21T15:26:47.699955Z
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.

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

Affected packages

Go / github.com/jub0bs/fcors

Package

Name
github.com/jub0bs/fcors
View open source insights on deps.dev
Purl
pkg:golang/github.com/jub0bs/fcors

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.0

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/jub0bs/fcors/internal/radix",
            "symbols": [
                "Tree.Contains",
                "Tree.Insert",
                "lastByteIn",
                "lengthOfCommonSuffix",
                "node.add",
                "splitRight"
            ]
        }
    ]
}