Advisory

GO-2024-2955

Also known as: CVE-2019-25211, GHSA-869c-j7wc-8jqv

Summary

Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors

Details

Gin-Gonic CORS middleware mishandles a wildcard at the end of an origin string. Examples: https://example.community/* is accepted by the origin string https://example.com/* and http://localhost.example.com/* is accepted by the origin string http://localhost/* .

Severity

Not rated by the source.

Dates

Published
2024-07-02 19:23 UTC
Modified
2024-07-02 19:57 UTC

Affected packages and fixes

github.com/gin-contrib/cors

Go · All systems

Affected

  • introduced 0, fixed 1.6.0 (semver)

Fixed versions

1.6.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences