| { |
| "dataType": "CVE_RECORD", |
| "dataVersion": "5.0", |
| "cveMetadata": { |
| "cveId": "CVE-2026-27142" |
| }, |
| "containers": { |
| "cna": { |
| "providerMetadata": { |
| "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" |
| }, |
| "title": "URLs in meta content attribute actions are not escaped in html/template", |
| "descriptions": [ |
| { |
| "lang": "en", |
| "value": "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." |
| } |
| ], |
| "affected": [ |
| { |
| "vendor": "Go standard library", |
| "product": "html/template", |
| "collectionURL": "https://pkg.go.dev", |
| "packageName": "html/template", |
| "versions": [ |
| { |
| "version": "0", |
| "lessThan": "1.25.8", |
| "status": "affected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "1.26.0-0", |
| "lessThan": "1.26.1", |
| "status": "affected", |
| "versionType": "semver" |
| } |
| ], |
| "programRoutines": [ |
| { |
| "name": "tTag" |
| }, |
| { |
| "name": "escaper.escapeAction" |
| }, |
| { |
| "name": "Template.Execute" |
| }, |
| { |
| "name": "Template.ExecuteTemplate" |
| } |
| ], |
| "defaultStatus": "unaffected" |
| } |
| ], |
| "problemTypes": [ |
| { |
| "descriptions": [ |
| { |
| "lang": "en", |
| "description": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')" |
| } |
| ] |
| } |
| ], |
| "references": [ |
| { |
| "url": "https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk" |
| }, |
| { |
| "url": "https://go.dev/issue/77954" |
| }, |
| { |
| "url": "https://go.dev/cl/752081" |
| }, |
| { |
| "url": "https://pkg.go.dev/vuln/GO-2026-4603" |
| } |
| ] |
| } |
| } |
| } |