html/template: fix JavaScript regexp tracking
This change prevents pathological inputs from
closing an unescaped `/` early, allowing for
attacker-controlled data to inject arbitrary
unscaped content.
Additionally, CL 532595 hints at the invariant
in TestEscapeText potentially getting the update
this change makes.
For #80435
Fixes CVE-2026-56858
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[release-branch.go1.25] html/template: fix JavaScript regexp tracking
This change prevents pathological inputs from
closing an unescaped `/` early, allowing for
attacker-controlled data to inject arbitrary
unscaped content.
Additionally, CL 532595 hints at the invariant
in TestEscapeText potentially getting the update
this change makes.
For #80435
Fixes CVE-2026-56858
Change-Id: I502b8960249fa9a2827b44b64d081d224ac57cbc
Reviewed-on: https://go-review.googlesource.com/c/go/+/807100
Reviewed-by: Neal Patel <neal...@google.com>
LUCI-TryBot-Result: golang...@luci-project-accounts.iam.gserviceaccount.com <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <rol...@golang.org>
(cherry picked from commit 0157ee9c8d501bac60d2ec8689fac1eea740215a)
Reviewed-on: https://go-review.googlesource.com/c/go/+/811000
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[release-branch.go1.26] html/template: fix JavaScript regexp tracking
This change prevents pathological inputs from
closing an unescaped `/` early, allowing for
attacker-controlled data to inject arbitrary
unscaped content.
Additionally, CL 532595 hints at the invariant
in TestEscapeText potentially getting the update
this change makes.
For #80435
Fixes CVE-2026-56858
Change-Id: I502b8960249fa9a2827b44b64d081d224ac57cbc
Reviewed-on: https://go-review.googlesource.com/c/go/+/807100
Reviewed-by: Neal Patel <neal...@google.com>
LUCI-TryBot-Result: golang...@luci-project-accounts.iam.gserviceaccount.com <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <rol...@golang.org>
(cherry picked from commit 0157ee9c8d501bac60d2ec8689fac1eea740215a)
Reviewed-on: https://go-review.googlesource.com/c/go/+/811020
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[release-branch.go1.27] html/template: fix JavaScript regexp tracking
This change prevents pathological inputs from
closing an unescaped `/` early, allowing for
attacker-controlled data to inject arbitrary
unscaped content.
Additionally, CL 532595 hints at the invariant
in TestEscapeText potentially getting the update
this change makes.
For #80435
Fixes CVE-2026-56858
Change-Id: I502b8960249fa9a2827b44b64d081d224ac57cbc
Reviewed-on: https://go-review.googlesource.com/c/go/+/807100
Reviewed-by: Neal Patel <neal...@google.com>
LUCI-TryBot-Result: golang...@luci-project-accounts.iam.gserviceaccount.com <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <rol...@golang.org>
(cherry picked from commit 0157ee9c8d501bac60d2ec8689fac1eea740215a)
Reviewed-on: https://go-review.googlesource.com/c/go/+/811040
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |