{"id":440,"name":"golang.org/x/text","ecosystem":"go","description":"text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.","homepage":"https://cs.opensource.google/go/x/text","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"license_expression":"BSD-3-Clause","repository_url":"https://cs.opensource.google/go/x/text","keywords_array":[],"namespace":"golang.org/x","versions_count":52,"first_release_published_at":"2017-09-14T09:07:07.000000Z","latest_release_published_at":"2026-11-09T16:29:39.000000Z","latest_release_number":"v0.44.0","latest_published_release_number":"v0.44.0","last_synced_at":"2026-12-04T15:23:48.481471Z","created_at":"2022-04-04T17:58:09.798215Z","updated_at":"2026-12-04T22:22:58.922152Z","registry_url":"https://pkg.go.dev/golang.org/x/text","install_command":"go get golang.org/x/text","documentation_url":"https://pkg.go.dev/golang.org/x/text#section-documentation","metadata":null,"repo_metadata":{},"repo_metadata_updated_at":"2026-09-22T23:50:16.640623Z","dependent_packages_count":113820,"downloads":null,"downloads_period":null,"dependent_repos_count":280468,"rankings":{"downloads":null,"dependent_repos_count":0.00031123431379058496,"dependent_packages_count":0.00041497908505411333,"stargazers_count":null,"forks_count":null,"docker_downloads_count":0.00010374477126352833,"average":0.00027665272336940887},"purl":"pkg:golang/golang.org/x/text","advisories":[{"uuid":"GSA_kwCzR0hTQS1wcHA5LTdqZmYtNXZqMs4AAwmL","url":"https://github.com/advisories/GHSA-ppp9-7jff-5vj2","title":"golang.org/x/text/language Out-of-bounds Read vulnerability","description":"golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP 47 language tag parsing. Index calculation is mishandled. If parsing untrusted user input, this can be used as a vector for a denial-of-service attack.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2022-12-26T06:30:22.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","references":["https://nvd.nist.gov/vuln/detail/CVE-2021-38561","https://deps.dev/advisory/OSV/GO-2021-0113","https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f","https://groups.google.com/g/golang-announce","https://pkg.go.dev/golang.org/x/text/language","https://go.dev/cl/340830","https://pkg.go.dev/vuln/GO-2021-0113","https://github.com/advisories/GHSA-ppp9-7jff-5vj2"],"source_kind":"github","identifiers":["GHSA-ppp9-7jff-5vj2","CVE-2021-38561"],"repository_url":null,"blast_radius":0.0,"created_at":"2023-01-09T21:03:31.720Z","updated_at":"2026-12-04T20:14:04.219Z","epss_percentage":0.01491,"epss_percentile":0.74872,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1wcHA5LTdqZmYtNXZqMs4AAwmL","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1wcHA5LTdqZmYtNXZqMs4AAwmL","affected_repository_urls":[],"packages":[{"ecosystem":"go","package_name":"golang.org/x/text","versions":[{"first_patched_version":"0.3.7","vulnerable_version_range":"\u003c 0.3.7"}],"purl":"pkg:go/golang.org%2Fx%2Ftext"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1wcHA5LTdqZmYtNXZqMs4AAwmL/related_packages","related_advisories":[{"uuid":"ALPINE-CVE-2021-38561","source_kind":"osv","url":"https://security.alpinelinux.org/vuln/CVE-2021-38561"},{"uuid":"DEBIAN-CVE-2021-38561","source_kind":"osv","url":"https://security-tracker.debian.org/tracker/CVE-2021-38561"},{"uuid":"CVE-2021-38561","source_kind":"osv","url":"https://groups.google.com/g/golang-announce"}]},{"uuid":"GSA_kwCzR0hTQS02OWNoLXcybTItM3ZqcM4AAvV0","url":"https://github.com/advisories/GHSA-69ch-w2m2-3vjp","title":"golang.org/x/text/language Denial of service via crafted Accept-Language header","description":"The BCP 47 tag parser has quadratic time complexity due to inherent aspects of its design. Since the parser is, by design, exposed to untrusted user input, this can be leveraged to force a program to consume significant time parsing Accept-Language headers. The parser cannot be easily rewritten to fix this behavior for various reasons. Instead the solution implemented in this CL is to limit the total complexity of tags passed into ParseAcceptLanguage by limiting the number of dashes in the string to 1000. This should be more than enough for the majority of real world use cases, where the number of tags being sent is likely to be in the single digits.\n\n### Specific Go Packages Affected\ngolang.org/x/text/language","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2022-10-14T19:00:40.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","references":["https://nvd.nist.gov/vuln/detail/CVE-2022-32149","https://go.dev/cl/442235","https://go.dev/issue/56152","https://groups.google.com/g/golang-announce/c/-hjNw559_tE/m/KlGTfid5CAAJ","https://pkg.go.dev/vuln/GO-2022-1059","https://github.com/golang/go/issues/56152","https://github.com/golang/text/commit/434eadcdbc3b0256971992e8c70027278364c72c","https://security.netapp.com/advisory/ntap-20230203-0006","https://github.com/advisories/GHSA-69ch-w2m2-3vjp"],"source_kind":"github","identifiers":["GHSA-69ch-w2m2-3vjp","CVE-2022-32149"],"repository_url":"https://github.com/golang/go","blast_radius":0.0,"created_at":"2022-12-21T16:11:54.305Z","updated_at":"2026-12-04T20:14:04.220Z","epss_percentage":0.01841,"epss_percentile":0.79616,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02OWNoLXcybTItM3ZqcM4AAvV0","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS02OWNoLXcybTItM3ZqcM4AAvV0","affected_repository_urls":[],"packages":[{"ecosystem":"go","package_name":"golang.org/x/text","versions":[{"first_patched_version":"0.3.8","vulnerable_version_range":"\u003c 0.3.8"}],"purl":"pkg:go/golang.org%2Fx%2Ftext","statistics":{"dependent_packages_count":113820,"dependent_repos_count":280468,"downloads":null,"downloads_period":null},"affected_versions":["v0.1.0","v0.2.0","v0.3.0","v0.3.1","v0.3.2","v0.3.3","v0.3.4","v0.3.5","v0.3.6","v0.3.7"],"unaffected_versions":["v0.3.8","v0.4.0","v0.5.0","v0.6.0","v0.7.0","v0.8.0","v0.9.0","v0.10.0","v0.11.0","v0.12.0","v0.13.0","v0.14.0","v0.15.0","v0.16.0","v0.17.0","v0.18.0","v0.19.0","v0.20.0","v0.21.0","v0.22.0","v0.23.0","v0.24.0","v0.25.0","v0.26.0","v0.27.0","v0.28.0","v0.29.0","v0.30.0","v0.31.0","v0.32.0","v0.33.0","v0.34.0","v0.35.0","v0.36.0","v0.37.0","v0.38.0","v0.39.0","v0.40.0","v0.41.0","v0.42.0","v0.43.0","v0.44.0"]}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02OWNoLXcybTItM3ZqcM4AAvV0/related_packages","related_advisories":[{"uuid":"ALPINE-CVE-2022-32149","source_kind":"osv","url":"https://security.alpinelinux.org/vuln/CVE-2022-32149"},{"uuid":"CVE-2022-32149","source_kind":"osv","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/32xxx/CVE-2022-32149.json"},{"uuid":"DEBIAN-CVE-2022-32149","source_kind":"osv","url":"https://security-tracker.debian.org/tracker/CVE-2022-32149"}]},{"uuid":"MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTVyY3YtbTRtMy1oZmg3","url":"https://github.com/advisories/GHSA-5rcv-m4m3-hfh7","title":"golang.org/x/text Infinite loop","description":"Go version v0.3.3 of the x/text package fixes a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory. An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to golang.org/x/text/transform.String.\n\n### Specific Go Packages Affected\ngolang.org/x/text/encoding/unicode\ngolang.org/x/text/transform","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2021-05-18T18:34:35.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.7,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C","references":["https://nvd.nist.gov/vuln/detail/CVE-2020-14040","https://github.com/golang/go/issues/39491","https://github.com/golang/text/commit/23ae387dee1f90d29a23c0e87ee0b46038fbed0e","https://go-review.googlesource.com/c/text/+/238238","https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0","https://groups.google.com/g/golang-announce/c/bXVeAmGOqz0","https://go.dev/cl/238238","https://go.dev/issue/39491","https://go.googlesource.com/text/+/23ae387dee1f90d29a23c0e87ee0b46038fbed0e","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O","https://github.com/advisories/GHSA-5rcv-m4m3-hfh7"],"source_kind":"github","identifiers":["GHSA-5rcv-m4m3-hfh7","CVE-2020-14040"],"repository_url":"https://github.com/golang/go","blast_radius":0.0,"created_at":"2022-12-21T16:13:04.359Z","updated_at":"2026-11-14T06:13:54.208Z","epss_percentage":0.01886,"epss_percentile":0.79514,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTVyY3YtbTRtMy1oZmg3","html_url":"https://advisories.ecosyste.ms/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTVyY3YtbTRtMy1oZmg3","affected_repository_urls":[],"packages":[{"ecosystem":"go","package_name":"golang.org/x/text","versions":[{"first_patched_version":"0.3.3","vulnerable_version_range":"\u003c 0.3.3"}],"purl":"pkg:go/golang.org%2Fx%2Ftext"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTVyY3YtbTRtMy1oZmg3/related_packages","related_advisories":[{"uuid":"DEBIAN-CVE-2020-14040","source_kind":"osv","url":"https://security-tracker.debian.org/tracker/CVE-2020-14040"},{"uuid":"CVE-2020-14040","source_kind":"osv","url":"https://osv.dev/vulnerability/CVE-2020-14040"}]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/golang.org/x/text","docker_dependents_count":37078,"docker_downloads_count":94930605593,"usage_url":"https://repos.ecosyste.ms/usage/go/golang.org/x/text","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/golang.org/x/text/dependencies","status":null,"funding_links":[],"critical":true,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/golang.org%2Fx%2Ftext/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/golang.org%2Fx%2Ftext/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/golang.org%2Fx%2Ftext/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/golang.org%2Fx%2Ftext/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/golang.org%2Fx%2Ftext/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/golang.org%2Fx%2Ftext/codemeta","maintainers":[]}