Advisory

GHSA-2g9v-7mr5-fgjg

Also known as: CVE-2026-42300, GO-2026-4988

Summary

DevGuard has an unauthenticated identity assertion via X-Admin-Token header

Details

Impact
The SessionMiddleware accepts a client-supplied X-Admin-Token HTTP request header and uses its raw string value as the authenticated userID when no Kratos session cookie is present. An unauthenticated attacker who knows or can guess a target user's Kratos identity UUID can issue requests as that user. Where the target user is an organisation admin or owner, this gives the attacker full control over that organisation's DevGuard resources.

Patches
The release v1.2.2 patches this issue. Update your DevGuard API Instances to this version.

Workarounds
Configure a reverse proxy to strip the X-Admin-Token header before sending requests to the DevGuard API.

Resources
Fixed commit: https://github.com/l3montree-dev/devguard/commit/6f38310bf93b2a63df3055038f4da82b1f4e6d9a

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-05-05 20:58 UTC
Modified
2026-05-20 19:41 UTC

Affected packages and fixes

github.com/l3montree-dev/devguard

Go · All systems

Affected

  • introduced 0, fixed 1.2.2 (semver)

Fixed versions

1.2.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences