Skip to main content
← All vulnerabilities
CVE-2019-25211GHSA-869C-J7WC-8JQVGO-2024-2955

parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.com

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.6.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • github.com/gin-gonic/ginGo

    fixed in 1.6.0

  • github.com/gin-contrib/corsGo

    fixed in 1.6.0

References 5

GitHub · gin-contrib/cors