Skip to content

x/vulndb: potential Go vuln in github.com/rs/cors #1792

@KenJPH

Description

@KenJPH

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 symbols

Does this vulnerability already have an associated CVE ID?

Yes

CVE ID

CVE-2018-20744

Credit

No response

CWE ID

CWE-346

Pull Request

rs/cors#57

Commit

No response

References

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions