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"
}
]
}
}