CVE-2026-58402
Last modified
CVE-2026-58402 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. Hugo is a static site generator. From 0.60.0 until 0.163.3, Hugo's default code-block renderer wrote the Markdown code-fence language or info-string into the code class="language-…" data-lang="…" wrapper without HTML escaping. EPSS estimates a 0.28% chance of exploitation in the next 30 days.
Description
Hugo is a static site generator. From 0.60.0 until 0.163.3, Hugo's default code-block renderer wrote the Markdown code-fence language or info-string into the code class="language-…" data-lang="…" wrapper without HTML escaping. A fence info-string containing a quote and a script payload breaks out of the attribute and injects a live script element. This issue is fixed in 0.163.3.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Gohugo | Hugo | >= 0.60.0, < 0.163.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-58402?
How severe is CVE-2026-58402?
How do I fix CVE-2026-58402?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58384A flaw was found in GIMP's PSD parser. An integer overflow i…7.8
- CVE-2026-58389Allocation of Resources Without Limits or Throttling vulnera…7.5
- CVE-2026-5839A vulnerability was identified in PHPGurukul News Portal Pro…4.7
- CVE-2026-58399@acastellon/auth is an authentication control system for mic…8.7
- CVE-2026-5840A security flaw has been discovered in PHPGurukul News Porta…4.7
- CVE-2026-58400GeoNetwork is a catalog application to manage spatially refe…9.1
- CVE-2026-58403Hugo is a static site generator. From v0.123.0 through v0.16…6.5
- CVE-2026-58404Hugo is a static site generator. From v0.162.0 through v0.16…6.8
- CVE-2026-58407Rejected reason: Please submit CVE requests for each vulnera…
- CVE-2026-58408ChurchCRM is an open-source church management system. Prior …6.5
- CVE-2026-58409ChurchCRM is an open-source church management system. Prior …9.1
- CVE-2026-5841A weakness has been identified in Tenda i3 1.0.0.6(2204). Th…9.8
Are you affected by CVE-2026-58402?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
