CVE-2021-1034
NixOS vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-32858 (also known as GHSL-2021-1034) affects the esdoc-publish-html-plugin package. The issue was discovered and reported by GitHub team member Erik Krogh Kristensen and involves an HTML sanitizer bypass that could lead to cross-site scripting (XSS) vulnerabilities. The vulnerability was initially reported on November 2, 2021, and was publicly disclosed on April 5, 2022 (GitHub Advisory).

Technical details

The vulnerability exists in the HTML sanitizer component of esdoc-publish-html-plugin (all versions up to 1.1.2). The sanitizer, intended to remove potentially malicious HTML, contains a flaw in its comment parsing logic. While it recognizes standard HTML comments, it fails to properly handle alternative comment formats, allowing attackers to bypass the sanitization process and inject arbitrary HTML content. The vulnerability specifically resides in the markdown function within the esdoc-publish-html-plugin/src/Builder/util.js file (GitHub Advisory).

Impact

This vulnerability can lead to cross-site scripting (XSS) attacks. When exploited, it allows attackers to inject and execute arbitrary JavaScript code in the context of the user's browser, potentially compromising user data and browser security (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management