{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
              "cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.25.8"
              },
              {
                "introduced": "1.26.0"
              },
              {
                "last_affected": "1.26.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "CPE_STRING"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "439ff996f0ee506fc2eb84b7f11ffc360a6299f2"
            },
            {
              "introduced": "d90b98e65320778f3b1f99a6951ab20f04d218b3"
            },
            {
              "last_affected": "d90b98e65320778f3b1f99a6951ab20f04d218b3"
            }
          ],
          "repo": "https://github.com/golang/go",
          "type": "GIT"
        }
      ],
      "versions": [
        "1.26.0"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Go",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27142.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "1.25.8"
          },
          {
            "introduced": "1.26.0-0"
          },
          {
            "fixed": "1.26.1"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value \"refresh\". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow \"url=\" by setting htmlmetacontenturlescape=0.",
  "id": "CVE-2026-27142",
  "modified": "2026-07-15T01:49:06.013049228Z",
  "published": "2026-03-06T21:28:14.674Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://go.dev/cl/752081"
    },
    {
      "type": "WEB",
      "url": "https://go.dev/issue/77954"
    },
    {
      "type": "WEB",
      "url": "https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk"
    },
    {
      "type": "WEB",
      "url": "https://pkg.go.dev"
    },
    {
      "type": "WEB",
      "url": "https://pkg.go.dev/vuln/GO-2026-4603"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27142.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27142"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "URLs in meta content attribute actions are not escaped in html/template"
}