File tree Expand file tree Collapse file tree 2 files changed +116
-0
lines changed Expand file tree Collapse file tree 2 files changed +116
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "schema_version" : " 1.3.1" ,
3
+ "id" : " GO-2024-2955" ,
4
+ "modified" : " 0001-01-01T00:00:00Z" ,
5
+ "published" : " 0001-01-01T00:00:00Z" ,
6
+ "aliases" : [
7
+ " CVE-2019-25211" ,
8
+ " GHSA-869c-j7wc-8jqv"
9
+ ],
10
+ "summary" : " Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors" ,
11
+ "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/* ." ,
12
+ "affected" : [
13
+ {
14
+ "package" : {
15
+ "name" : " github.com/gin-contrib/cors" ,
16
+ "ecosystem" : " Go"
17
+ },
18
+ "ranges" : [
19
+ {
20
+ "type" : " SEMVER" ,
21
+ "events" : [
22
+ {
23
+ "introduced" : " 0"
24
+ },
25
+ {
26
+ "fixed" : " 1.6.0"
27
+ }
28
+ ]
29
+ }
30
+ ],
31
+ "ecosystem_specific" : {
32
+ "imports" : [
33
+ {
34
+ "path" : " github.com/gin-contrib/cors" ,
35
+ "symbols" : [
36
+ " Config.parseWildcardRules" ,
37
+ " Default" ,
38
+ " New"
39
+ ]
40
+ }
41
+ ]
42
+ }
43
+ }
44
+ ],
45
+ "references" : [
46
+ {
47
+ "type" : " ADVISORY" ,
48
+ "url" : " https://github.com/advisories/GHSA-869c-j7wc-8jqv"
49
+ },
50
+ {
51
+ "type" : " FIX" ,
52
+ "url" : " https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d"
53
+ },
54
+ {
55
+ "type" : " FIX" ,
56
+ "url" : " https://github.com/gin-contrib/cors/pull/106"
57
+ },
58
+ {
59
+ "type" : " FIX" ,
60
+ "url" : " https://github.com/gin-contrib/cors/pull/57"
61
+ },
62
+ {
63
+ "type" : " WEB" ,
64
+ "url" : " https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0"
65
+ },
66
+ {
67
+ "type" : " WEB" ,
68
+ "url" : " https://github.com/gin-contrib/cors/releases/tag/v1.6.0"
69
+ }
70
+ ],
71
+ "credits" : [
72
+ {
73
+ "name" : " @maxshine"
74
+ }
75
+ ],
76
+ "database_specific" : {
77
+ "url" : " https://pkg.go.dev/vuln/GO-2024-2955" ,
78
+ "review_status" : " REVIEWED"
79
+ }
80
+ }
Original file line number Diff line number Diff line change
1
+ id : GO-2024-2955
2
+ modules :
3
+ - module : github.com/gin-contrib/cors
4
+ versions :
5
+ - fixed : 1.6.0
6
+ vulnerable_at : 1.5.0
7
+ packages :
8
+ - package : github.com/gin-contrib/cors
9
+ symbols :
10
+ - Config.parseWildcardRules
11
+ derived_symbols :
12
+ - Default
13
+ - New
14
+ summary : Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors
15
+ description : |-
16
+ Gin-Gonic CORS middleware mishandles a wildcard at the end of an origin string.
17
+ Examples: https://example.community/* is accepted by the origin string
18
+ https://example.com/* and http://localhost.example.com/* is accepted by the
19
+ origin string http://localhost/* .
20
+ cves :
21
+ - CVE-2019-25211
22
+ ghsas :
23
+ - GHSA-869c-j7wc-8jqv
24
+ credits :
25
+ - ' @maxshine'
26
+ references :
27
+ - advisory : https://github.com/advisories/GHSA-869c-j7wc-8jqv
28
+ - fix : https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d
29
+ - fix : https://github.com/gin-contrib/cors/pull/106
30
+ - fix : https://github.com/gin-contrib/cors/pull/57
31
+ - web : https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0
32
+ - web : https://github.com/gin-contrib/cors/releases/tag/v1.6.0
33
+ source :
34
+ id : GHSA-869c-j7wc-8jqv
35
+ created : 2024-07-02T10:00:03.105364-07:00
36
+ review_status : REVIEWED
You can’t perform that action at this time.
0 commit comments