CVE-2026-140394
Last modified
CVE-2026-140394 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. Hugo after 0.140.2 and before 0.170.0 contains a stored cross-site scripting vulnerability in the highlight shortcode and transform.Highlight template function, which write the wrapperClass option unescaped into the wrapping div's class attribute. Content authors can supply a wrapperClass value that closes the attribute and appends a script element, executing JavaScript in visitors' browsers under the site's origin..
Description
Hugo after 0.140.2 and before 0.170.0 contains a stored cross-site scripting vulnerability in the highlight shortcode and transform.Highlight template function, which write the wrapperClass option unescaped into the wrapping div's class attribute. Content authors can supply a wrapperClass value that closes the attribute and appends a script element, executing JavaScript in visitors' browsers under the site's origin.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| gohugoio | hugo | >= 0.140.2, < 0.170.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-140394?
How severe is CVE-2026-140394?
How do I fix CVE-2026-140394?
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-140389phpMyFAQ 4.1.11 does not invalidate a user's previously issu…7.5
- CVE-2026-14039Insufficient policy enforcement in GetUserMedia in Google Ch…4.3
- CVE-2026-140390Admidio 4.1.0 through 5.0.8 contains an authorization flaw i…3.1
- CVE-2026-140391DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass…6.1
- CVE-2026-140392actix-http before 3.21.3 contains an HTTP/1.1 request smuggl…3.7
- CVE-2026-140393actix-http before 3.21.2, the HTTP library underlying Actix …5.3
- CVE-2026-140395Hugo from 0.56.0 before 0.170.0 contains a path traversal vu…7.5
- CVE-2026-140396Ghost from 1.0.0 before 6.76.0 contains a privilege escalati…5.5
- CVE-2026-140397Ghost from 6.62.0 before 6.72.0 contains an information disc…5.3
- CVE-2026-140398Ghost from 5.70.0 before 6.76.0 downloads protocol-relative …3.1
- CVE-2026-140399Ghost from 5.26.0 before 6.76.0 contains a denial of service…6.5
- CVE-2026-1404The Ultimate Member – User Profile, Registration, Login, Mem…6.1
Are you affected by CVE-2026-140394?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
