fix(govulncheck): scan the module as a dependency and read the stream

govulncheck prints indented JSON objects. The line parser read none of
them, so every module read clean.

govulncheck also never reports advisories against the main module of the
tree it scans. A scan of the x/text 0.3.5 source found nothing. The
module is now a dependency of a wrapper module that imports its
packages, and the scan runs at module level.
This commit is contained in:
2026-11-23 18:07:21 +00:00
parent 157814cf08
commit e37c797602
8 changed files with 1691 additions and 88 deletions
@@ -0,0 +1,338 @@
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v1.9.0",
"db": "https://vuln.go.dev",
"db_last_modified": "2026-11-11T02:51:11Z",
"go_version": "go1.26.11",
"scan_level": "symbol",
"scan_mode": "source"
}
}
{
"progress": {
"message": "Fetching vulnerabilities from the database..."
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2022-0493",
"modified": "2024-05-20T16:03:47Z",
"published": "2022-07-15T23:30:12Z",
"aliases": [
"CVE-2022-29526",
"GHSA-p782-xgp4-8hr8"
],
"summary": "Incorrect privilege reporting in syscall and golang.org/x/sys/unix",
"details": "When called with a non-zero flags parameter, the Faccessat function can incorrectly report that a file is accessible.",
"affected": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.17.10"
},
{
"introduced": "1.18.0-0"
},
{
"fixed": "1.18.2"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "syscall",
"symbols": [
"Faccessat"
]
}
]
}
},
{
"package": {
"name": "golang.org/x/sys",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20220412211240-33da011f77ad"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/sys/unix",
"symbols": [
"Faccessat"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/399539"
},
{
"type": "REPORT",
"url": "https://go.dev/issue/52313"
},
{
"type": "FIX",
"url": "https://go.dev/cl/400074"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/Y5qrqw_lWdU"
}
],
"credits": [
{
"name": "Jo\u00ebl G\u00e4hwiler (@256dpi)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0493",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2026-5024",
"modified": "2026-05-22T18:28:47Z",
"published": "2026-05-22T18:28:47Z",
"aliases": [
"CVE-2026-39824"
],
"summary": "Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows",
"details": "NewNTUnicodeString does not check for string length overflow. When provided with a string that overflows the maximum size of a NTUnicodeString (a 16-bit number of bytes), it returns a truncated string rather than an error.",
"affected": [
{
"package": {
"name": "golang.org/x/sys",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.44.0"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/sys/windows",
"goos": [
"windows"
],
"symbols": [
"NewNTUnicodeString"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/78916"
},
{
"type": "FIX",
"url": "https://go.dev/cl/770080"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/6MMI8Lj-Atg"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2026-5024",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2022-0493",
"modified": "2024-05-20T16:03:47Z",
"published": "2022-07-15T23:30:12Z",
"aliases": [
"CVE-2022-29526",
"GHSA-p782-xgp4-8hr8"
],
"summary": "Incorrect privilege reporting in syscall and golang.org/x/sys/unix",
"details": "When called with a non-zero flags parameter, the Faccessat function can incorrectly report that a file is accessible.",
"affected": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.17.10"
},
{
"introduced": "1.18.0-0"
},
{
"fixed": "1.18.2"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "syscall",
"symbols": [
"Faccessat"
]
}
]
}
},
{
"package": {
"name": "golang.org/x/sys",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20220412211240-33da011f77ad"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/sys/unix",
"symbols": [
"Faccessat"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/399539"
},
{
"type": "REPORT",
"url": "https://go.dev/issue/52313"
},
{
"type": "FIX",
"url": "https://go.dev/cl/400074"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/Y5qrqw_lWdU"
}
],
"credits": [
{
"name": "Jo\u00ebl G\u00e4hwiler (@256dpi)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0493",
"review_status": "REVIEWED"
}
}
}
{
"progress": {
"message": "Checking the code against the vulnerabilities..."
}
}
{
"finding": {
"osv": "GO-2022-0493",
"fixed_version": "v0.0.0-20220412211240-33da011f77ad",
"trace": [
{
"module": "golang.org/x/sys",
"version": "v0.0.0-20200116001909-b77594299b42"
}
]
}
}
{
"finding": {
"osv": "GO-2026-5024",
"fixed_version": "v0.44.0",
"trace": [
{
"module": "golang.org/x/sys",
"version": "v0.0.0-20200116001909-b77594299b42"
}
]
}
}
{
"finding": {
"osv": "GO-2022-0493",
"fixed_version": "v0.0.0-20220412211240-33da011f77ad",
"trace": [
{
"module": "golang.org/x/sys",
"version": "v0.0.0-20200116001909-b77594299b42",
"package": "golang.org/x/sys/unix"
}
]
}
}
+522
View File
@@ -0,0 +1,522 @@
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v1.9.0",
"db": "https://vuln.go.dev",
"db_last_modified": "2026-11-11T02:51:11Z",
"go_version": "go1.26.11",
"scan_level": "module",
"scan_mode": "source"
}
}
{
"progress": {
"message": "Fetching vulnerabilities from the database..."
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2022-0493",
"modified": "2024-05-20T16:03:47Z",
"published": "2022-07-15T23:30:12Z",
"aliases": [
"CVE-2022-29526",
"GHSA-p782-xgp4-8hr8"
],
"summary": "Incorrect privilege reporting in syscall and golang.org/x/sys/unix",
"details": "When called with a non-zero flags parameter, the Faccessat function can incorrectly report that a file is accessible.",
"affected": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.17.10"
},
{
"introduced": "1.18.0-0"
},
{
"fixed": "1.18.2"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "syscall",
"symbols": [
"Faccessat"
]
}
]
}
},
{
"package": {
"name": "golang.org/x/sys",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20220412211240-33da011f77ad"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/sys/unix",
"symbols": [
"Faccessat"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/399539"
},
{
"type": "REPORT",
"url": "https://go.dev/issue/52313"
},
{
"type": "FIX",
"url": "https://go.dev/cl/400074"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/Y5qrqw_lWdU"
}
],
"credits": [
{
"name": "Jo\u00ebl G\u00e4hwiler (@256dpi)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0493",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2021-0052",
"modified": "2024-05-20T16:03:47Z",
"published": "2021-04-14T20:04:52Z",
"aliases": [
"CVE-2020-28483",
"GHSA-h395-qcrw-5vmq"
],
"summary": "Inconsistent interpretation of HTTP Requests in github.com/gin-gonic/gin",
"details": "Due to improper HTTP header sanitization, a malicious user can spoof their source IP address by setting the X-Forwarded-For header. This may allow a user to bypass IP based restrictions, or obfuscate their true source.",
"affected": [
{
"package": {
"name": "github.com/gin-gonic/gin",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.7.7"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/gin-gonic/gin",
"symbols": [
"Context.ClientIP",
"Context.Next",
"Context.RemoteIP",
"Engine.HandleContext",
"Engine.Run",
"Engine.RunFd",
"Engine.RunListener",
"Engine.RunTLS",
"Engine.RunUnix",
"Engine.ServeHTTP"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://github.com/gin-gonic/gin/issues/2862"
},
{
"type": "REPORT",
"url": "https://github.com/gin-gonic/gin/issues/2473"
},
{
"type": "REPORT",
"url": "https://github.com/gin-gonic/gin/issues/2232"
},
{
"type": "FIX",
"url": "https://github.com/gin-gonic/gin/pull/2844"
},
{
"type": "FIX",
"url": "https://github.com/gin-gonic/gin/commit/5929d521715610c9dd14898ebbe1d188d5de8937"
},
{
"type": "FIX",
"url": "https://github.com/gin-gonic/gin/pull/2632"
},
{
"type": "FIX",
"url": "https://github.com/gin-gonic/gin/commit/bfc8ca285eb46dad60e037d57c545cd260636711"
},
{
"type": "FIX",
"url": "https://github.com/gin-gonic/gin/pull/2675"
},
{
"type": "FIX",
"url": "https://github.com/gin-gonic/gin/commit/03e5e05ae089bc989f1ca41841f05504d29e3fd9"
},
{
"type": "WEB",
"url": "https://github.com/gin-gonic/gin/pull/2474"
}
],
"credits": [
{
"name": "@sorenisanerd"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2021-0052",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2023-1737",
"modified": "2024-05-20T16:03:47Z",
"published": "2023-05-11T18:59:56Z",
"aliases": [
"CVE-2023-29401",
"GHSA-2c4m-59x9-fr2g"
],
"summary": "Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin",
"details": "The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of \"setup.bat";x=.txt\" will be sent as a file named \"setup.bat\".\n\nIf the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.",
"affected": [
{
"package": {
"name": "github.com/gin-gonic/gin",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.3.1-0.20190301021747-ccb9e902956d"
},
{
"fixed": "1.9.1"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/gin-gonic/gin",
"symbols": [
"Context.FileAttachment"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://github.com/gin-gonic/gin/issues/3555"
},
{
"type": "FIX",
"url": "https://github.com/gin-gonic/gin/pull/3556"
},
{
"type": "WEB",
"url": "https://github.com/gin-gonic/gin/releases/tag/v1.9.1"
}
],
"credits": [
{
"name": "motoyasu-saburi"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2023-1737",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2022-0493",
"modified": "2024-05-20T16:03:47Z",
"published": "2022-07-15T23:30:12Z",
"aliases": [
"CVE-2022-29526",
"GHSA-p782-xgp4-8hr8"
],
"summary": "Incorrect privilege reporting in syscall and golang.org/x/sys/unix",
"details": "When called with a non-zero flags parameter, the Faccessat function can incorrectly report that a file is accessible.",
"affected": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.17.10"
},
{
"introduced": "1.18.0-0"
},
{
"fixed": "1.18.2"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "syscall",
"symbols": [
"Faccessat"
]
}
]
}
},
{
"package": {
"name": "golang.org/x/sys",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20220412211240-33da011f77ad"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/sys/unix",
"symbols": [
"Faccessat"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/399539"
},
{
"type": "REPORT",
"url": "https://go.dev/issue/52313"
},
{
"type": "FIX",
"url": "https://go.dev/cl/400074"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/Y5qrqw_lWdU"
}
],
"credits": [
{
"name": "Jo\u00ebl G\u00e4hwiler (@256dpi)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0493",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2026-5024",
"modified": "2026-05-22T18:28:47Z",
"published": "2026-05-22T18:28:47Z",
"aliases": [
"CVE-2026-39824"
],
"summary": "Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows",
"details": "NewNTUnicodeString does not check for string length overflow. When provided with a string that overflows the maximum size of a NTUnicodeString (a 16-bit number of bytes), it returns a truncated string rather than an error.",
"affected": [
{
"package": {
"name": "golang.org/x/sys",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.44.0"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/sys/windows",
"goos": [
"windows"
],
"symbols": [
"NewNTUnicodeString"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/78916"
},
{
"type": "FIX",
"url": "https://go.dev/cl/770080"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/6MMI8Lj-Atg"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2026-5024",
"review_status": "REVIEWED"
}
}
}
{
"progress": {
"message": "Checking the code against the vulnerabilities..."
}
}
{
"finding": {
"osv": "GO-2021-0052",
"fixed_version": "v1.7.7",
"trace": [
{
"module": "github.com/gin-gonic/gin",
"version": "v1.6.0"
}
]
}
}
{
"finding": {
"osv": "GO-2023-1737",
"fixed_version": "v1.9.1",
"trace": [
{
"module": "github.com/gin-gonic/gin",
"version": "v1.6.0"
}
]
}
}
{
"finding": {
"osv": "GO-2022-0493",
"fixed_version": "v0.0.0-20220412211240-33da011f77ad",
"trace": [
{
"module": "golang.org/x/sys",
"version": "v0.0.0-20200116001909-b77594299b42"
}
]
}
}
{
"finding": {
"osv": "GO-2026-5024",
"fixed_version": "v0.44.0",
"trace": [
{
"module": "golang.org/x/sys",
"version": "v0.0.0-20200116001909-b77594299b42"
}
]
}
}
@@ -0,0 +1,6 @@
github.com/gin-gonic/gin gin 18 0
github.com/gin-gonic/gin/binding binding 13 0
github.com/gin-gonic/gin/ginS ginS 1 0
github.com/gin-gonic/gin/internal/bytesconv bytesconv 1 0
github.com/gin-gonic/gin/internal/json json 1 0
github.com/gin-gonic/gin/render render 11 0
@@ -0,0 +1,63 @@
golang.org/x/text text 1 0
golang.org/x/text/cases cases 7 0
golang.org/x/text/cmd/gotext main 7 0
golang.org/x/text/cmd/gotext/examples/extract main 2 0
golang.org/x/text/cmd/gotext/examples/extract_http main 2 0
golang.org/x/text/cmd/gotext/examples/extract_http/pkg pkg 1 0
golang.org/x/text/cmd/gotext/examples/rewrite main 1 0
golang.org/x/text/collate collate 5 0
golang.org/x/text/collate/build build 6 0
golang.org/x/text/collate/tools/colcmp main 4 0
golang.org/x/text/currency currency 5 0
golang.org/x/text/date date 1 0
golang.org/x/text/encoding encoding 1 0
golang.org/x/text/encoding/charmap charmap 2 0
golang.org/x/text/encoding/htmlindex htmlindex 3 0
golang.org/x/text/encoding/ianaindex ianaindex 3 0
golang.org/x/text/encoding/internal internal 1 0
golang.org/x/text/encoding/internal/enctest enctest 1 0
golang.org/x/text/encoding/internal/identifier identifier 2 0
golang.org/x/text/encoding/japanese japanese 5 0
golang.org/x/text/encoding/korean korean 2 0
golang.org/x/text/encoding/simplifiedchinese simplifiedchinese 4 0
golang.org/x/text/encoding/traditionalchinese traditionalchinese 2 0
golang.org/x/text/encoding/unicode unicode 2 0
golang.org/x/text/encoding/unicode/utf32 utf32 1 0
golang.org/x/text/feature/plural plural 4 0
golang.org/x/text/internal internal 2 0
golang.org/x/text/internal/catmsg catmsg 3 0
golang.org/x/text/internal/cldrtree cldrtree 5 0
golang.org/x/text/internal/colltab colltab 8 0
golang.org/x/text/internal/export/idna idna 5 0
golang.org/x/text/internal/export/unicode unicode 1 0
golang.org/x/text/internal/format format 2 0
golang.org/x/text/internal/gen gen 2 0
golang.org/x/text/internal/gen/bitfield bitfield 1 0
golang.org/x/text/internal/language language 10 0
golang.org/x/text/internal/language/compact compact 5 0
golang.org/x/text/internal/number number 7 0
golang.org/x/text/internal/stringset stringset 1 0
golang.org/x/text/internal/tag tag 1 0
golang.org/x/text/internal/testtext testtext 5 0
golang.org/x/text/internal/triegen triegen 3 0
golang.org/x/text/internal/ucd ucd 1 0
golang.org/x/text/internal/utf8internal utf8internal 1 0
golang.org/x/text/language language 8 0
golang.org/x/text/language/display display 4 0
golang.org/x/text/message message 5 0
golang.org/x/text/message/catalog catalog 3 0
golang.org/x/text/message/pipeline pipeline 5 0
golang.org/x/text/number number 4 0
golang.org/x/text/runes runes 2 0
golang.org/x/text/search search 4 0
golang.org/x/text/secure secure 1 0
golang.org/x/text/secure/bidirule bidirule 2 0
golang.org/x/text/secure/precis precis 10 0
golang.org/x/text/transform transform 1 0
golang.org/x/text/unicode unicode 1 0
golang.org/x/text/unicode/bidi bidi 6 0
golang.org/x/text/unicode/cldr cldr 7 0
golang.org/x/text/unicode/norm norm 9 0
golang.org/x/text/unicode/rangetable rangetable 3 0
golang.org/x/text/unicode/runenames runenames 2 0
golang.org/x/text/width width 5 0
@@ -0,0 +1,22 @@
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v1.9.0",
"db": "https://vuln.go.dev",
"db_last_modified": "2026-11-11T02:51:11Z",
"go_version": "go1.26.11",
"scan_level": "module",
"scan_mode": "source"
}
}
{
"progress": {
"message": "Fetching vulnerabilities from the database..."
}
}
{
"progress": {
"message": "Checking the code against the vulnerabilities..."
}
}
+369
View File
@@ -0,0 +1,369 @@
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v1.9.0",
"db": "https://vuln.go.dev",
"db_last_modified": "2026-11-11T02:51:11Z",
"go_version": "go1.26.11",
"scan_level": "module",
"scan_mode": "source"
}
}
{
"progress": {
"message": "Fetching vulnerabilities from the database..."
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2021-0113",
"modified": "2024-05-20T16:03:47Z",
"published": "2021-10-06T17:51:21Z",
"aliases": [
"CVE-2021-38561",
"GHSA-ppp9-7jff-5vj2"
],
"summary": "Out-of-bounds read in golang.org/x/text/language",
"details": "Due to improper index calculation, an incorrectly formatted language tag can cause Parse to panic via an out of bounds read. If Parse is used to process untrusted user inputs, this may be used as a vector for a denial of service attack.",
"affected": [
{
"package": {
"name": "golang.org/x/text",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.7"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/text/language",
"symbols": [
"MatchStrings",
"MustParse",
"Parse",
"ParseAcceptLanguage"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/340830"
},
{
"type": "FIX",
"url": "https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f"
}
],
"credits": [
{
"name": "Guido Vranken"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2021-0113",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2022-1059",
"modified": "2024-05-20T16:03:47Z",
"published": "2022-10-11T18:16:24Z",
"aliases": [
"CVE-2022-32149",
"GHSA-69ch-w2m2-3vjp"
],
"summary": "Denial of service via crafted Accept-Language header in golang.org/x/text/language",
"details": "An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.",
"affected": [
{
"package": {
"name": "golang.org/x/text",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.8"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/text/language",
"symbols": [
"MatchStrings",
"ParseAcceptLanguage"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/56152"
},
{
"type": "FIX",
"url": "https://go.dev/cl/442235"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/-hjNw559_tE/m/KlGTfid5CAAJ"
}
],
"credits": [
{
"name": "Adam Korczynski (ADA Logics)"
},
{
"name": "OSS-Fuzz"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-1059",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2026-5970",
"modified": "2026-08-10T22:42:36Z",
"published": "2026-07-14T17:29:56Z",
"aliases": [
"CVE-2026-56852"
],
"summary": "Infinite loop on invalid input in golang.org/x/text",
"details": "A norm.Iter can enter an infinite loop when handling input containing invalid UTF-8 bytes.",
"affected": [
{
"package": {
"name": "golang.org/x/text",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.39.0"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/text/unicode/norm",
"symbols": [
"Form.Append",
"Form.AppendString",
"Form.Bytes",
"Form.FirstBoundary",
"Form.FirstBoundaryInString",
"Form.IsNormal",
"Form.IsNormalString",
"Form.LastBoundary",
"Form.NextBoundary",
"Form.NextBoundaryInString",
"Form.Properties",
"Form.PropertiesString",
"Form.QuickSpan",
"Form.QuickSpanString",
"Form.Span",
"Form.SpanString",
"Form.String",
"Form.Transform",
"Iter.Init",
"Iter.InitString",
"Iter.Next",
"Iter.Seek",
"nextComposed",
"normReader.Read",
"normWriter.Write"
]
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/80142"
},
{
"type": "FIX",
"url": "https://go.dev/cl/794100"
}
],
"credits": [
{
"name": "Viky Choi (\"vikychoi\" on GitHub)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2026-5970",
"review_status": "REVIEWED"
}
}
}
{
"osv": {
"schema_version": "1.3.1",
"id": "GO-2026-6629",
"modified": "2026-10-07T14:09:43Z",
"published": "2026-10-07T14:09:43Z",
"aliases": [
"CVE-2026-56851"
],
"summary": "Panic parsing crafted input in x/text/secure/precis in golang.org/x/text",
"details": "The Nickname profile can panic with an out-of-bounds slice error when transforming crafted input into a short destination buffer.",
"affected": [
{
"package": {
"name": "golang.org/x/text",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.41.0"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/text/secure/precis",
"symbols": [
"Profile.Append",
"Profile.AppendCompareKey",
"Profile.Bytes",
"Profile.Compare",
"Profile.CompareKey",
"Profile.NewTransformer",
"Profile.String",
"Transformer.Bytes",
"Transformer.String",
"Transformer.Transform",
"nickAdditionalMapping.Transform"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/793360"
},
{
"type": "REPORT",
"url": "https://go.dev/issue/80112"
}
],
"credits": [
{
"name": "Omkhar Arasaratnam (GitHub: omkhar)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2026-6629",
"review_status": "REVIEWED"
}
}
}
{
"progress": {
"message": "Checking the code against the vulnerabilities..."
}
}
{
"finding": {
"osv": "GO-2021-0113",
"fixed_version": "v0.3.7",
"trace": [
{
"module": "golang.org/x/text",
"version": "v0.3.5"
}
]
}
}
{
"finding": {
"osv": "GO-2022-1059",
"fixed_version": "v0.3.8",
"trace": [
{
"module": "golang.org/x/text",
"version": "v0.3.5"
}
]
}
}
{
"finding": {
"osv": "GO-2026-5970",
"fixed_version": "v0.39.0",
"trace": [
{
"module": "golang.org/x/text",
"version": "v0.3.5"
}
]
}
}
{
"finding": {
"osv": "GO-2026-6629",
"fixed_version": "v0.41.0",
"trace": [
{
"module": "golang.org/x/text",
"version": "v0.3.5"
}
]
}
}