Skip to main content

CVE-2026-42300 — Vulnerability in l3montree-dev/devguard — CVE Details

CRITICAL

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

Published May 5, 2026Updated May 20, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.43%). Schedule for your next planned update.

Does your project use an affected github.com/l3montree-dev/devguard version?

Paste your go.sum to check it for CVE-2026-42300 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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

Advisory Timeline

  • First published May 5, 2026 (205 days ago).
  • Last revised May 20, 2026 — 15 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/l3montree-dev/devguard to 1.2.2 or later
go get github.com/l3montree-dev/devguard@v1.2.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/l3montree-dev/devguard Go · Affected: All versions1.2.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2026-42300?
DevGuard has an unauthenticated identity assertion via `X-Admin-Token` header. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-42300?
CVE-2026-42300 affects github.com/l3montree-dev/devguard. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-42300 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.43%
EPSS percentile: 29.7

This is a below-median EPSS score — only 29.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-2g9v-7mr5-fgjg
GO-2026-4988

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum