GHSA-2g9v-7mr5-fgjg

Suggest an improvement
Source
https://github.com/advisories/GHSA-2g9v-7mr5-fgjg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2g9v-7mr5-fgjg/GHSA-2g9v-7mr5-fgjg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2g9v-7mr5-fgjg
Aliases
Published
2026-05-05T20:58:27Z
Modified
2026-05-20T19:41:10Z
Severity
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
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

Database specific
{
    "cwe_ids":  [
        "CWE-288"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-05T20:58:27Z",
    "nvd_published_at":  "2026-05-12T18:17:24Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Go / github.com/l3montree-dev/devguard

Package

Name
github.com/l3montree-dev/devguard
View open source insights on deps.dev
Purl
pkg:golang/github.com/l3montree-dev/devguard

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.2.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2g9v-7mr5-fgjg/GHSA-2g9v-7mr5-fgjg.json"