Out of Bounds Read Vulnerability in golang-github-gomarkdown-markdown Package

Summary

22/04/2026
N/A
No i
Unrated
Not published

DEBIAN-CVE-2026-40890: The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Affects golang-github-gomarkdown-markdown versions 0.0~git20220731.dcdaee8-2 – 0.0~git20231115.a660076-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The golang-github-gomarkdown-markdown package is a Go library designed for parsing Markdown text and rendering it as HTML. It is widely used in applications that require Markdown processing due to its efficiency and ease of integration. However, this package has been identified to have a vulnerability that can lead to serious issues when handling malformed input.

Vulnerability Detail

The vulnerability arises when the SmartypantsRenderer processes malformed input containing a '<' character that is not followed by a '>' character anywhere in the remaining text. This can lead to an Out of Bounds read or a panic, potentially causing application crashes or unexpected behavior. The issue is rooted in the way the library handles certain edge cases in Markdown parsing, making it critical for developers to address this vulnerability promptly.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can validate the input before processing it with the SmartypantsRenderer to ensure that it does not contain any malformed Markdown syntax. This can help prevent the vulnerability from being exploited until the package is updated.

Conclusion

The golang-github-gomarkdown-markdown package has a critical vulnerability that can lead to Out of Bounds reads or panics when processing malformed Markdown input. It is essential for developers to update their packages to the patched version to ensure application stability and security. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for golang-github-gomarkdown-markdown →

Share this vulnerability

FAQ

The vulnerability is an Out of Bounds read or panic caused by processing malformed Markdown input.

All versions of the golang-github-gomarkdown-markdown package are affected, as the vulnerability was introduced from version 0.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploiting this vulnerability can lead to application crashes, unexpected behavior, and potential data exposure.

Yes, a patch is available. Updating to the latest version of the golang-github-gomarkdown-markdown package will resolve the issue.

Related vulnerabilities

Recent vulnerabilities recorded for golang-github-gomarkdown-markdown.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback