Ubuntu CVE Tracker
UBUNTU-CVE-2023-24540
This advisory was withdrawn on 18 July 2025.
Details
Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:20.04:LTS | golang-1.20 | All versions before 1.20.3-1ubuntu0.1~20.04 (fixed in 1.20.3-1ubuntu0.1~20.04) |
| Ubuntu:22.04:LTS | golang-1.20 | All versions before 1.20.3-1ubuntu0.1~22.04 (fixed in 1.20.3-1ubuntu0.1~22.04) |
References
- https://ubuntu.com/security/CVE-2023-24540
- https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU
- https://github.com/golang/go/issues/59721
- https://github.com/golang/go/commit/ce7bd33345416e6d8cac901792060591cafc2797
- https://github.com/golang/go/commit/4a28cad66655ee01c6e944271e23c33cab021765
- https://ubuntu.com/security/notices/USN-6140-1
- https://www.cve.org/CVERecord?id=CVE-2023-24540