CVE-2026-40890
HIGH 7.5CVSS 3.1Go Markdown has an Out-of-bounds Read in SmartypantsRenderer
The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Processing a malformed input containing a < character that is not followed by a > character anywhere in the remaining text with a SmartypantsRenderer will lead to Out of Bounds read or a panic. This vulnerability is fixed with commit 759bbc3e32073c3bc4e25969c132fc520eda2778.
- Published
- 21 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-125
- Also known as
- GHSA-77fj-vx54-gvh7GO-2026-5208
- Sources
- NVDJSONOSV GHSA-77fj-vx54-gvh7JSONOSV GO-2026-5208JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gomarkdown | markdowncpe:2.3:a:gomarkdown:markdown:*:*:*:*:*:go:*:* |
< 2026-04-10 | 2026-04-10 |
| OSV | Go | github.com/gomarkdown/markdown | < 0.0.0-20260411013819-759bbc3e3207 | 0.0.0-20260411013819-759bbc3e3207 |
References
- https://github.com/gomarkdown/markdown/commit/759bbc3e32073c3bc4e25969c132fc520eda2778 · Patch, WEB, FIX
- https://github.com/gomarkdown/markdown/security/advisories/GHSA-77fj-vx54-gvh7 · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-40890 · ADVISORY
- https://github.com/gomarkdown/markdown · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 21 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 14 Apr 2026)