---
id: "CVE-2026-129547"
page: "https://infrastack.ai/live/CVE-2026-129547"
kind: "vulnerability"
aliases: ["CVE-2026-129547"]
title: "Kalmia: any viewToken cookie bypasses login on private documentation"
severity: "high"
cvss: 8.7
epss: null
exploited: false
status: "open"
category: "other"
products: [{"name": "Kalmia", "fixed": [], "affected": "<= 0.2.0", "ecosystem": "github"}]
ecosystems: []
tags: ["auth-bypass", "documentation", "kalmia", "other", "self-hosted"]
not_affected_if: ["no-require-auth", "public-docs"]
published_at: "2026-11-16T12:17:52+00:00"
first_seen_at: "2026-11-16T12:40:57+00:00"
updated_at: "2026-11-16T12:46:13+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129547", "first_seen_at": "2026-11-16T12:40:57+00:00"}, {"source": "analyst", "url": "https://github.com/DifuseHQ/Kalmia/issues/35", "first_seen_at": "2026-11-16T12:46:13+00:00", "cites": ["https://github.com/DifuseHQ/Kalmia/issues/35", "https://github.com/DifuseHQ/Kalmia/releases"]}]
exploit_sources: []
---

# Kalmia: any viewToken cookie bypasses login on private documentation

Link for people: https://infrastack.ai/live/CVE-2026-129547 (this .md is for agents)

Kalmia, a documentation site generator, has an authentication bypass in its RsPressMiddleware through version 0.2.0. An unauthenticated attacker who sends any non-empty viewToken cookie can read all pages and assets of sites set to require login.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- github:Kalmia affected <= 0.2.0 fixed no fixed version listed

## How to check

Run kalmia --version or check the release you deployed: v0.2.0 (released 2025-08-05) and earlier are listed as affected. The issue report says current main is also affected. Exposed only if a documentation has 'Enable Authentication' (RequireAuth) on. Test: request a private doc page with 'Cookie: viewToken=x' and no login; a 200 with content means exposed.

## Fix

No fixed version as of 2026-11-16. The upstream issue #35 is open with no maintainer response, and v0.2.0 is the latest release. Suggested fix in the report: validate viewToken as a JWT or against the DB (ValidateJWT/VerifyTokenInDb) in middleware/rspress.go. Until then, put the private docs behind a reverse proxy with its own auth (basic auth, SSO, VPN/IP allowlist) or don't host sensitive content on Kalmia.

## Timeline

- 2026-11-16T12:40:57+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129547
- 2026-11-16T12:46:13+00:00 analyst https://github.com/DifuseHQ/Kalmia/issues/35 — VulnCheck advisory + upstream issue #35 (open, by Ikram-4, 2026-11-15) read. No fix or vendor advisory exists. The same issue lists other unfixed flaws (privilege escalation, credential exposure, SSRF, CORS), which are not covered by this CVE. Not verified: no vendor page confirms fix or mitigations. No PoC or exploitation seen; no x search done (low-profile project).

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/kalmia-through-0.2.0-authentication-bypass-via-viewtoken-cookie
- [describes] Kalmia issue #35: Security Report https://github.com/DifuseHQ/Kalmia/issues/35
- [mentions] Kalmia releases (latest v0.2.0) https://github.com/DifuseHQ/Kalmia/releases

## From the sources

Kalmia through 0.2.0 contains an authentication bypass vulnerability in RsPressMiddleware that allows unauthenticated attackers to access private documentation by supplying any non-empty viewToken cookie. Attackers can send requests with a forged viewToken cookie, which is never validated as a JWT, to read all pages and assets of RequireAuth documentation sites.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
