# GHSA-V6JH-FX3M-7XHW: Unauthenticated Access to Full OpenAPI Documentation

- Database: GitHub
- Severity: CVSS 5.3 (Medium)
- Published: 2026-06-23
- Modified: 2026-06-23

## Affected versions

- com.appsmith:appsmith-server (Maven): through 1.99

## Description

### Summary

Appsmith ships the `springdoc-openapi` library in production and exposes the complete API documentation schema at `/v3/docs` and the interactive Swagger UI at `/v3/swagger` without any authentication. Any unauthenticated attacker can enumerate every API endpoint, request/response schema, parameter names, and authentication requirements — significantly lowering the barrier to targeted attacks.

**CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N — Score: 5.3 (Low)**

---

### Details

#### Root Cause — `SecurityConfig.java:216`

```java
// SecurityConfig.java — line 216
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, "/v3/**"),
// ↑ This is inside the permitAll() block — no authentication required
```

#### Configured Paths — `application-ce.properties:115–116`

```properties
springdoc.api-docs.path=/v3/docs
springdoc.swagger-ui.path=/v3/swagger
```

#### Production Dependency — `appsmith-server/pom.xml:300–301`

```xml
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
```

---

### Proof of Concept

```bash
# Fetch full OpenAPI JSON schema — no credentials required
curl -s https://appsmith.target.com/v3/docs | python3 -m json.tool

# Open interactive Swagger UI
open "https://appsmith.target.com/v3/swagger-ui.html"
```

The response reveals every controller endpoint, HTTP method, request body schema, header parameters, path variables, and response codes — including undocumented internal and admin endpoints not listed in any public documentation.

---

### Impact

- **Authentication required**: None
- **Information exposed**: All API endpoints, request/response schemas, authentication parameter names, admin route structure
- **Risk**: Significantly accelerates reconnaissance; reveals attack surface that an attacker would otherwise have to discover through manual fuzzing

---

### Recommended Fix

Either remove `springdoc-openapi` from the production build entirely, or add the OpenAPI paths to the `authenticated()` block in `SecurityConfig.java`:

```java
// Remove these lines from the permitAll() matchers:
// ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, "/v3/**"),

// And add authentication for /v3/** — or restrict to INTERNAL role:
.matchers(new PathPatternParserServerWebExchangeMatcher("/v3/**"))
    .hasAnyAuthority("INTERNAL", "ROLE_SUPER_USER")
```

---

## References

- https://github.com/appsmithorg/appsmith/security/advisories/GHSA-v6jh-fx3m-7xhw

Page: https://cve.now/GHSA-V6JH-FX3M-7XHW

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
