CVE-2026-40890

github.com/gomarkdown/markdown: Out-of-bounds Read in SmartypantsRenderer

Published Apr 21, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-77fj-vx54-gvh7 Go Markdown has an Out-of-bounds Read in SmartypantsRenderer
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gomarkdown:markdown:*:*:*:*:*:go:*:*
Type Values Removed Values Added
First Time appeared Gomarkdown
Gomarkdown markdown
Vendors & Products Gomarkdown
Gomarkdown markdown
Type Values Removed Values Added
Description 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.
Title github.com/gomarkdown/markdown: Out-of-bounds Read in SmartypantsRenderer
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 21, 2026, 8:36 PM
Reserved
Apr 15, 2026, 4:37 PM
Status
Analyzed
Published
Apr 21, 2026, 8:17 PM
Modified
Oct 26, 2026, 9:10 PM
Severity
Important
Public date
Apr 21, 2026, 7:51 PM