Hugo is a free program that builds websites from plain text. You write pages in Markdown, pick a theme, and hugo turns the folder into a finished site of HTML, CSS and images that you can put on any web host, including free ones such as GitHub Pages, Netlify or Cloudflare Pages. hugo server shows the site on your computer and refreshes the browser every time you save.
It earns its place because it is one program with nothing else to install, and it is fast: the project says it renders a complete site in seconds, often less. Blogs, documentation, portfolios, landing pages and company sites are the usual uses, and there are hundreds of free themes at themes.gohugo.io. Image resizing, Sass, Tailwind CSS and JavaScript bundling, menus, tags and multilingual sites are built in, and the finished site has no database or server code to attack.
Hugo is Apache-2.0 licensed and written in Go. Steve Francia (spf13) created it in 2013, and Bjørn Erik Pedersen (bep) now leads it; it has about 90,600 stars and over 900 contributors. Version 0.171.0 came out on 30 November 2026.
- Repository: github.com/gohugoio/hugo
- Licence: Apache-2.0 (Apache License 2.0)
- Language: Go. Stars: 90.6K. Forks: 8,576. Last push: Nov 30, 2026.
- Scan: safe, Nov 30, 2026, commit 74c421b
Who it is for
Bloggers, people writing documentation, developers making a portfolio or project site, and small businesses that want a fast site with cheap or free hosting. It runs on macOS, Linux and Windows; you use it from a terminal, and themes usually come in with git.
Getting started
1. Install on macOS or Linux with Homebrew
brew install hugo2. Or on Windows, with winget
winget install -e --id Hugo.Hugo3. Or on Ubuntu and Debian (the distribution's version may be older)
sudo apt install hugo4. Create a site with the Ananke theme (needs git)
hugo new project quickstart
cd quickstart
git init
git submodule add https://github.com/gohugo-ananke/ananke themes/ananke
echo "theme = 'ananke'" >> hugo.toml5. Add your first post, then preview drafts at the address it prints
hugo new content content/posts/my-first-post.md
hugo server -D6. Build the finished site into the public folder, ready to upload
hugoPackage managers install the hugo program and change nothing else. The quick start uses git to fetch the Ananke theme from GitHub. hugo server is for previewing on your own computer; for the real site, upload the public folder or let a host such as Netlify or GitHub Pages build it. New posts start as drafts, so set draft = false before you publish. Our scan covers the source code, not the prebuilt binaries or the themes you add.
Safety scan
We cloned gohugoio/hugo at commit 74c421b on Nov 30, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.
- 0 secret hits and no committed binaries across 2,622 files and about 325,000 lines, mostly Go.
- 0 pattern hits and no build scripts beyond Go's own toolchain. The one IP address in the code, in config/security/securityConfig_test.go, is a test of Hugo's URL rules.
- No install script. Each release has prebuilt archives and packages for macOS, Linux, Windows and the BSDs, in standard and deploy editions, with a checksums file; a workflow publishes a Docker image on ghcr.io, and Homebrew, winget, Scoop, Chocolatey, Snap and most Linux distributions package it too.
- 1 advisory across the 179 Go modules in go.mod, unrated: gorilla/websocket picks the masks for its frames with a weak random number generator, which matters little here because Hugo uses it for the live reload connection between hugo server and your browser.
- Hugo has no telemetry and only goes online when your site asks: Hugo Modules download themes through Go's module proxy or git, and resources.GetRemote fetches URLs your templates name. Its security policy limits which programs a site can run (Sass, Go, git, Node, PostCSS and a few others) and which environment variables it can read (HUGO_ and CI only). 3 workflows, no pull_request_target, and all 7 third-party actions are pinned to a commit. A security policy and Dependabot are present; no CodeQL. OpenSSF Scorecard gives it 5.9 out of 10.
What the scanner counted
| Check | Result |
|---|---|
| Secrets | None found. |
| Suspicious code | None found. |
| Install-time code | None: nothing runs at install beyond the package manager itself. |
| Committed binaries | None. |
| CI workflows | 3 workflows. None use pull_request_target. 0 of 7 third-party actions pinned to a tag rather than a commit. |
| Network hosts | 40 distinct hosts referenced from source; most often www.apache.org, github.com, gohugo.io, golang.org. 1 URL to a bare IP address, listed under the raw findings. |
| Known vulnerabilities | 1 advisory across 179 pinned packages: 0 critical, 0 high, 0 moderate, 0 low, 1 unrated. go.mod: 179 packages, 1 advisories. |
| Project hygiene | Has security policy, automated dependency updates, licence file, contributing guide. Missing CodeQL. |
| OpenSSF Scorecard | 5.9 out of 10, as of Nov 23, 2026. |
The raw findings
Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.
URLs to bare IP addresses (1)
| Where | Rule | Match |
|---|---|---|
| config/security/securityConfig_test.go:213 | ip-literal-url | "http://93.184.216.34/", |
Worst known vulnerabilities (1 of 1)
| Advisory | Severity | Package | Summary |
|---|---|---|---|
| GHSA-w67g-5rqw-f597 | unknown | github.com/gorilla/websocket@1.5.3 | Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key in github.com/gorilla/websocket |
By the numbers
| Stars | 90.6K |
|---|---|
| Forks | 8,576 |
| Contributors | 944 |
| Commits | 10.1K |
| Open issues | 181 |
| Open pull requests | 36 |
| Releases | 388 |
| Latest release | v0.171.0 |
| Licence | Apache-2.0 |
| Main language | Go |
| Project age | 13 years |
| Last push | Nov 30, 2026 |
| Tracked files | 2,622 |
| Lines of code | 324.6K |
| Checkout size | 28 MB |
Lines by language: Go 236.6K, Markdown 64.8K, YAML 6,265, HTML 5,347, JavaScript 4,803, C 4,243.
Questions
Is Hugo free?
Yes. It is free and open source under Apache 2.0, with no account and no paid version. Hosting the finished site can be free too, on GitHub Pages, Netlify or Cloudflare Pages.
Hugo or WordPress?
Hugo if you are happy writing in Markdown and want a fast site with no database, no plugins to patch and cheap hosting. WordPress if you want to edit pages in a browser, or need comments, shops or member logins.
Do I need to know how to code?
Not to start: you write Markdown and use a ready-made theme. You do need to be comfortable in a terminal, and changing a theme's layout means learning Hugo's Go templates.
Does Hugo work on Windows?
Yes. Install it with winget, Scoop or Chocolatey and run it in PowerShell or Windows Terminal.
How do I uninstall Hugo?
Run brew uninstall hugo, winget uninstall Hugo.Hugo or sudo apt remove hugo. Your sites are ordinary folders, so they stay where they are.
This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.
