Skip to main content
Menu
Advisories

Unauthenticated Access to Full OpenAPI Documentation

GHSA-V6JH-FX3M-7XHWPublished Updated GitHub

Description

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

// 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

springdoc.api-docs.path=/v3/docs
springdoc.swagger-ui.path=/v3/swagger

Production Dependency — appsmith-server/pom.xml:300–301

<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webflux-ui</artifactId>

---

Proof of Concept

# 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:

// 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")

---

Affected versions

References

GitHub · appsmithorg/appsmith