🛡️ CVE-2026-42461 — arcane

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-862 NVD
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Arcane Vulnerable to Unauthenticated Disclosure of Custom Compose Template Content (incl. .env secrets)

Summary

Four GET endpoints under /api/templates* in Arcane's Huma backend are registered without any Security requirement, allowing any unauthenticated network client to list and read the full Compose YAML and .env content of every custom template stored in the instance. Because Arcane's UI exposes a "Save as Template" flow on the project / swarm-stack creation pages that persists the operator's *real* env content (database passwords, API keys, etc.) verbatim, this missing authorization is an unauthenticated read of operator secrets in practice — not a theoretical info-disclosure.

The frontend explicitly treats /customize/templates/* as an authenticated area (PROTECTED_PREFIXES in frontend/src/lib/utils/redirect.util.ts), and every CRUD operation (POST/PUT/DELETE) on the same paths requires a Bearer/API key, so this is a clear backend authorization gap, not intended public access.

Details

Affected file: backend/internal/huma/handlers/templates.go:194-228.

In RegisterTemplates, four huma.Register calls have no Security: block:

```go

// templates.go

huma.Register(api, huma.Operation{

OperationID: "listTemplatesPaginated",

Method: "GET",

Path: "/templates",

...

// <-- no Security

}, h.ListTemplates)

huma.Register(api, huma.Operation{

OperationID: "getAllTemplates",

Method: "GET",

Path: "/templates/all",

...

}, h.GetAllTemplates)

huma.Register(api, huma.Operation{

OperationID: "getTemplate",

Method: "GET",

Path: "/templates/{id}",

...

}, h.GetTemplate)

huma.Register(api, huma.Operation{

OperationID: "getTemplateContent",

Method: "GET",

Path: "/templates/{id}/content",

...

}, h.GetTemplateContent)

```

Arcane's auth bridge (backend/internal/huma/middleware/auth.go:168-172) only enforces authentication when the operation declares one of the security schemes (BearerAuth or ApiKeyAuth). With Security omitted, parseSecurityRequirements returns isRequired=false and the request flows through with no token check.

TemplateHandler.GetTemplateContent (templates.go:478-499) calls templateService.GetTemplateContentWithParsedData (backend/internal/services/template_service.go:1303-1347), which returns the model's Content, EnvContent, parsed services, and parsed env-variable key/value pairs verbatim. The model models.ComposeTemplate (backend/internal/models/template.go:15-16) stores Content and EnvContent as plain text columns and has no owner / user binding.

Impact

  • Pre-auth confidentiality breach. An unauthenticated client on the same network (or through any path-unaware reverse proxy) recovers the full envContent of every locally-stored Compose template. Because the supported "Save as Template" workflow takes the operator's real env values verbatim, this commonly includes database passwords, registry tokens, third-party API keys (Stripe, Sentry, etc.), and OIDC client secrets.
  • Internal asset enumeration. GET /api/templates returns names, descriptions, tags, and registry metadata for every template, leaking what services the team runs internally and which compose files they reuse

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

Weakness class

CVE-2026-42461 is classified as CWE-862: Missing Authorization. No authorisation check is performed before carrying out a restricted action.

Affected software

CVE-2026-42461 is recorded against 3 packages.

  • arcane (fixed in 1.18.0)
  • github.com/getarcaneapp/arcane/backend
  • unknown

Timeline and source

Published on 9 May 2026 and last revised on 24 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com
github.com

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE CWE-862
Public Exploit ✅ No
Source NVD
Published 2026-05-09
Updated 2026-08-12
Modified 2026-07-24
Fix URL N/A

Affected Packages

Software From version Fixed in
arcane 1.18.0
github.com/getarcaneapp/arcane/backend
unknown

Similar Threats

Site Security Check

Is arcane part of your stack?

CVE-2026-42461 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.