Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS12aHh2LWZnNG0tcDJ3OM4AA7vQ

Some CORS middleware allow untrusted origins

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.

Permalink: https://github.com/advisories/GHSA-vhxv-fg4m-p2w8
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12aHh2LWZnNG0tcDJ3OM4AA7vQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 15 days ago
Updated: 15 days ago


CVSS Score: 9.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Identifiers: GHSA-vhxv-fg4m-p2w8
References: Repository: https://github.com/jub0bs/cors
Blast Radius: 1.0

Affected Packages

go:github.com/jub0bs/cors
Dependent packages: 0
Dependent repositories: 0
Downloads:
Affected Version Ranges: < 0.1.3
Fixed in: 0.1.3
All affected versions:
All unaffected versions: