Files
gohoarder/pkg/scanner/govulncheck/testdata/x-text-v0.3.5.stream
T
lukaszraczylo e37c797602 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.
2026-11-23 18:07:21 +00:00

370 lines
8.6 KiB
Plaintext

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