---
id: CVE-2026-40242
aliases:
  - GHSA-ff24-4prj-gpmj
  - GO-2026-5356
title: >-
  Arcane has Unauthenticated SSRF with Conditional Response Reflection in
  Template Fetch Endpoint
summary: >-
  Arcane has Unauthenticated SSRF with Conditional Response Reflection in
  Template Fetch Endpoint
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'
vendor: getarcaneapp
product: github.com/getarcaneapp/arcane/backend
ecosystem: go
affected:
  - github.com/getarcaneapp/arcane/backend < 1.17.3
patched:
  - github.com/getarcaneapp/arcane/backend 1.17.3
published: '2026-04-10'
updated: '2026-07-21'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-ff24-4prj-gpmj'
references:
  - url: >-
      https://github.com/getarcaneapp/arcane/security/advisories/GHSA-ff24-4prj-gpmj
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-40242'
  - url: 'https://github.com/getarcaneapp/arcane'
  - url: 'https://github.com/getarcaneapp/arcane/releases/tag/v1.17.3'
tags:
  - osv
  - go
  - exploit-available
epss: 0.00721
epssPercentile: 0.51886
ingestedAt: '2026-07-21T19:04:58.834Z'
exploits:
  nuclei:
    - CVE-2026-40242
  checkedAt: '2026-09-25T08:20:56.406Z'
exploitAvailable: true
---

## Overview

### Summary
The /api/templates/fetch endpoint accepts a caller-supplied url parameter and performs a server-side HTTP GET request to that URL without authentication and without URL scheme or host validation. The server's response is returned directly to the caller. type. This constitutes an unauthenticated SSRF vulnerability affecting any publicly reachable Arcane instance.

### Details
- No allowlist or denylist of destination hosts/CIDRs
- No requirement for the caller to be authenticated

Response handling produces four distinct outcomes observable by the caller: 
- Valid JSON targets return a fully reflected response body if the returned fields fit the expected internal struct
- Non-JSON HTTP 200 responses produce an error leaking the first byte of the response (`"Invalid JSON response: invalid character '<'..."`)
- Non-200 responses leak the HTTP status code
- TCP-level failures distinguish between closed ports (`"connection refused"`) and filtered ones (`"i/o timeout"`)

### PoC
Send an unauthenticated GET request to `/api/templates/fetch`, passing the target URL as the `url` query parameter.

<img width="1041" height="375" alt="image" src="https://github.com/user-attachments/assets/f9fd475e-90b0-4dec-95e1-0af6263f5bb5" />

### Impact
- Unauthenticated port scanning of internal networks
- Access to internal HTTP services not exposed to the public internet (service discovery endpoints, internal dashboards, Kubernetes API)

## Affected packages

- `github.com/getarcaneapp/arcane/backend < 1.17.3`

## Remediation

Upgrade to a patched release:

- `github.com/getarcaneapp/arcane/backend 1.17.3`
