-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
Description
Description
The CORS handler actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible with the CORS security design, and could lead to CORS misconfiguration security problems.
Affected Modules, Packages, Versions and Symbols
Module: github.com/rs/cors
Package: github.com/rs/cors
Versions:
- Introduced: 1.1.0
- Fixed: 1.5.0
Symbols:
- all symbolsDoes this vulnerability already have an associated CVE ID?
Yes
CVE ID
Credit
No response
CWE ID
CWE-346
Pull Request
Commit
No response
References
- https://github.com/rs/cors#allow--with-credentials-security-protection
- CORS security: reflecting any origin header value when configured to * is dangerous rs/cors#55
- Fix * behavior to be standards compliant. rs/cors#57
Additional information
The CVE states up to version 1.3.0 but 1.4.0 is also vulnerable as it doesn't contain the fix.
jub0bs