Skip to content

← Public intelligence

Go package

golang.org/x/text

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

4 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. UnratedGoPublished

    Panic parsing crafted input in x/text/secure/precis in golang.org/x/text

    CVE-2026-56851

    Affected
    • Go golang.org/x/text < 0.41.0
    Fixed in
    0.41.0· Vendor fix available
    Issue
    The Nickname profile can panic with an out-of-bounds slice error when transforming crafted input into a short destination buffer.

    Recommended action: Upgrade to 0.41.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  2. High, CVSS 7.5GoPublished

    golang.org/x/text/language Out-of-bounds Read vulnerability

    CVE-2021-38561 · GHSA-ppp9-7jff-5vj2

    Affected
    • Go golang.org/x/text < 0.3.7
    Fixed in
    0.3.7· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 0.3.7 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. High, CVSS 7.5GoPublished

    golang.org/x/text/language Denial of service via crafted Accept-Language header

    CVE-2022-32149 · GHSA-69ch-w2m2-3vjp

    Affected
    • Go golang.org/x/text < 0.3.8
    Fixed in
    0.3.8· Vendor fix available
    Issue
    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. Specific Go Packages Affected golang.org/x/text/language

    Recommended action: Upgrade to 0.3.8 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. Medium, CVSS 6.7GoPublished

    golang.org/x/text Infinite loop

    CVE-2020-14040 · GHSA-5rcv-m4m3-hfh7

    Affected
    • Go golang.org/x/text < 0.3.3
    Fixed in
    0.3.3· Vendor fix available
    Issue
    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. Specific Go Packages Affected golang.org/x/text/encoding/unicode golang.org/x/text/transform

    Recommended action: Upgrade to 0.3.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →