Ross ROSS = Recommend OSS · open-source software intelligence for agents

microcosm-cc/bluemonday

bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS observed · 2026-08-28

github.com/microcosm-cc/bluemonday · homepage · Go · BSD-3-Clause (permissive) observed · 2026-08-28

Health v2 · maintenance only

29/100

  • Activity 14
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4669
  • days_rel: n/a
  • days_push: 516
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

3714 stars · 195 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

bluemonday is a fast, highly configurable HTML sanitizer library for Go, inspired by the OWASP Java HTML Sanitizer. It takes untrusted user-generated content and returns HTML sanitized against an allowlist of approved elements and attributes to prevent XSS attacks.

Use cases

  • sanitize user comments before rendering on a web page
  • strip javascript: URLs and event handlers from HTML input
  • allow only safe HTML tags in forum or CMS posts
  • clean HTML output from markdown processors like blackfriday or Pandoc
  • prevent XSS attacks from user generated content in a Go web server
  • enforce an allowlist of permitted HTML elements and attributes

When to choose

  • your Go server accepts and displays user-generated HTML
  • you need a fast, allowlist-based sanitizer with configurable policies
  • you want OWASP-aligned XSS mitigation for HTML content
  • you need to sanitize output after markdown or other HTML-producing processing

When to avoid

  • you need to repair badly nested or incomplete HTML rather than sanitize it
  • you are not working in Go
  • you need a browser-side or client-side sanitizer
  • you need full HTML validation or parsing of malformed documents

Facets

library · maturity stable

security parser web-framework security web-development developer-tools go cross-platform html-sanitizer xss-protection allowlist user-generated-content owasp

2 sources

Member repositories

RepositoryRoleHealth v2
microcosm-cc/bluemondaymain29

For agents

markdown · JSON · MCP: product_card(name="microcosm-cc/bluemonday")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem