Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 80%

CVE-2026-44301: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gohugoio hugo

0
Medium
VulnerabilityCVE-2026-44301cvecve-2026-44301cwe-22
Published: 05/12/2026 (05/12/2026, 21:37:52 UTC)
Source: CVE Database V5
Vendor/Project: gohugoio
Product: hugo

Description

Hugo is a static site generator. From 0.43 to before 0.161.0, when building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory. Users who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected. This vulnerability is fixed in 0.161.0.

CVSS v4.0

Score 6.2medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U

Affected software

github.com/gohugoio/hugo
pkg:golang/github.com/gohugoio/hugo
Affected versions
<0.161.0 >=0.43

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 22:07:47 UTC

Technical Analysis

CVE-2026-44301 is a path traversal vulnerability (CWE-22) in the Hugo static site generator affecting versions 0.43 through before 0.161.0. The issue arises because when Hugo builds sites using Node-based asset pipelines (PostCSS, Babel, TailwindCSS), it invokes these external tools without limiting their filesystem access. This lack of restriction can lead to unauthorized reading or writing of files outside the project directory if Hugo is run against untrusted site content. The vulnerability has a CVSS 4.0 base score of 6.2 (medium severity). It is fixed in Hugo version 0.161.0.

Potential Impact

An attacker able to execute Hugo on an untrusted site that uses Node-based asset pipelines could leverage this vulnerability to read or write files outside the intended project directory. This could lead to unauthorized access or modification of files on the host system. Users who do not use the affected Node tools or only build trusted sites are not impacted. There are no known exploits in the wild at this time.

Mitigation Recommendations

Upgrade Hugo to version 0.161.0 or later, where this vulnerability is fixed. Users who do not use PostCSS, Babel, or TailwindCSS, or only build trusted sites, are not affected and may not require immediate action. Patch status is confirmed fixed in version 0.161.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-05T17:39:31.113Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a03a0decbff5d86101d5c89

Added to database: 05/12/2026, 21:51:26 UTC

Last enriched: 05/12/2026, 22:07:47 UTC

Last updated: 07/31/2026, 19:22:59 UTC

Views: 77

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses