Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

The Nickname profile can panic with an out-of-bounds slice error when transforming crafted input into a short destination buffer.

Products
golang.org/x/text
Affected versions
Not specified
Fixed versions
0.41.0
CVEs
CVE-2026-56851
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:36 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 7 Oct 2026, 14:09 UTC

The Nickname profile can panic with an out-of-bounds slice error when transforming crafted input into a short destination buffer.

osv:GO-2026-6629

golang.org/x/text

Fixed versions: 0.41.0

Complete source record
{
  "id": "8243f80cbf2ed30e1f8b18c864af63d5bbeb61602c091afe6c8ce6f8662b33f3",
  "url": "https://osv.dev/vulnerability/GO-2026-6629",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Panic parsing crafted input in x/text/secure/precis in golang.org/x/text",
    "summary": "The Nickname profile can panic with an out-of-bounds slice error when transforming crafted input into a short destination buffer.",
    "evidence": "osv:GO-2026-6629",
    "products": [
      {
        "name": {
          "value": "golang.org/x/text",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.41.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "GO-2026-6629",
      "aliases": [
        "CVE-2026-56851",
        "GO-2026-6629"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.41.0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang.org/x/text",
            "purl": "pkg:golang/golang.org/x/text",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://vuln.go.dev/ID/GO-2026-6629.json"
          },
          "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"
                ]
              }
            ]
          }
        }
      ],
      "modified": "2026-10-20T10:42:24.514593111Z",
      "provider": "osv",
      "references": [
        "https://go.dev/cl/793360",
        "https://go.dev/issue/80112"
      ],
      "provider_metadata": {
        "url": "https://pkg.go.dev/vuln/GO-2026-6629",
        "review_status": "REVIEWED"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-56851",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 379198,
  "published_at": "2026-10-07T14:09:43+00:00"
}