Skip to content
VulniPulse
Advisory severityMedium4.3Red Hat Linux

Medium [CVE-2026-46338] Information disclosure via crafted Markdown snippets

This medium-severity Red Hat Linux advisory covers CVE-2026-46338 affecting Red Hat Developer Hub 1, Red Hat OpenShift Container Platform 4, Self-service automation portal 2.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2026-46338 Source published Source updated

VulniPulse record published Record updated

CVE-2026-46338
Affected products & platforms
Red Hat LinuxUnclassified
Open source advisory

Get an email when Red Hat Linux publishes the next one.

See Red Hat Linux's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).

Alert me about Red Hat Linux

Summary

PyMdown Extensions is a set of extensions for the Python-Markdown markdown project.

From 10.0.1 until 10.21.3, pymdownx.snippets uses a string-prefix containment check in SnippetPreprocessor.get_snippet_path() in pymdownx/snippets.py when `restrict_base_path: True`, allowing markdown snippet directives to read files from sibling paths that share the same base_path prefix, such as docs and docs_internal.

This is a regression of CVE-2023-32309. This issue is fixed in version 10.21.3.

A flaw was found in PyMdown Extensions, a tool used for processing Markdown documents. This vulnerability allows an attacker to potentially read sensitive files from unexpected locations on a system.

By crafting a special Markdown snippet, an attacker could trick the system into accessing files outside of the intended directory, leading to unauthorized information disclosure. This issue requires user interaction, meaning a user would need to process a malicious Markdown file for the attack to succeed.

Red Hat ships pymdown-extensions in several products as a bundled dependency. The vulnerability requires an attacker to control Markdown content processed by the pymdownx.snippets extension and for sibling directories with a matching path prefix to exist.

Affected products named by the advisory: Red Hat Developer Hub 1; Red Hat OpenShift Container Platform 4; Self-service automation portal 2.

Affected versions

No affected-version range was extracted from the source record. The vendor advisory is authoritative. Check it before change work.

Official advisory · high-confidence parse· fetched 6 days ago·verify at source

Fixed versions
  • 10.21.3

Official advisory · high-confidence parse· fetched 6 days ago·verify at source

Mitigation checklist

Recommended fix / mitigation
  • Ensure that untrusted Markdown content is not processed by the pymdownx.snippets extension. If the snippets feature is not required, it can be disabled in the MkDocs or Python-Markdown configuration.

Official advisory · high-confidence parse· fetched 6 days ago·verify at source

All Red Hat Linux advisories

iPhone and Android apps · New on the App Store

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.