# GHSA-4J3G-HF4Q-X4VG: Apollo Portal: authenticated users can bypass memberOnly configuration visibility through OpenAPI

- Database: GitHub
- Severity: CVSS 6.5 (Medium)
- Published: 2026-11-21
- Modified: 2026-11-21

## Affected versions

- com.ctrip.framework.apollo:apollo-portal (Maven): from 2.5.0, through 2.5.2

## Description

### Summary

Apollo Portal v2.5.0 through v2.5.2 allows an authenticated Portal user to bypass configuration visibility restrictions enforced by `configView.memberOnly.envs` through the OpenAPI item and latest-release read endpoints.

Portal-session access to OpenAPI was introduced by [PR #5474](https://github.com/apolloconfig/apollo/pull/5474), first released in v2.5.0. The affected read endpoints accept the authenticated Portal session but do not apply the human-user visibility checks used by the corresponding Portal configuration views.

### Impact and prerequisites

The issue affects deployments where `configView.memberOnly.envs` is enabled for the requested environment. A user with a valid Portal account and session, but without permission to view a private namespace, can read its configuration values through the affected OpenAPI endpoints. Item reads can also expose unpublished configuration values. Exposed values may include database credentials or API secrets.

The confirmed issue requires an authenticated Portal user. Anonymous requests without a valid authentication credential are rejected. Apollo's built-in authentication in v2.5.2 does not provide anonymous self-registration.

The confirmed impact is disclosure of configuration data. No configuration modification or direct availability impact has been established for this issue.

- **Severity:** Moderate (CVSS v3.1: 6.5)
- **Vector:** `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **Weakness:** CWE-862 (Missing Authorization)

### Affected versions and endpoints

Affected package: `com.ctrip.framework.apollo:apollo-portal`.

Affected released versions: `>= 2.5.0, <= 2.5.2`.

The affected read endpoints are under `/openapi/v1/envs/{env}/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}`:

- `GET /items`
- `GET /items/{key}`
- `GET /encodedItems/{key}`
- `GET /releases/latest`

The confirmed reproduction uses a Portal user who cannot view the target private namespace through the normal Portal configuration view, but receives configuration values from the affected OpenAPI read endpoints using the same Portal session.

### Patches

The relevant OpenAPI item and latest-release read paths have been fixed on `master` to apply Portal-user visibility checks. The remediation is planned for Apollo 3.0.0.

As of September 26, 2026, no released version contains this fix. There is currently no separate 2.x backport or 2.x security release planned for this advisory. The plan may be revisited if the 3.0.0 timeline or 2.x maintenance policy changes.

### Mitigations

Until a fixed release is available, restrict Portal access and account provisioning to users trusted with the configuration data held by the deployment. Network access restrictions alone do not prevent exploitation by an already-authorized Portal user who can reach the affected endpoints. Keeping `configView.memberOnly.envs` enabled does not prevent this OpenAPI bypass on affected versions.

### Scope

Consumer Tokens do not provide per-application read isolation. Their cross-application read behavior is expected by design and is outside this advisory's scope; namespace grants on a Consumer Token should not be interpreted as read scopes.

The legacy release-comparison and Config Service notification findings are tracked separately and are not included in this advisory's affected version range or severity assessment.

### References

- Introduction of Portal-session OpenAPI access: [PR #5474](https://github.com/apolloconfig/apollo/pull/5474)
- OpenAPI item visibility checks: [PR #5610](https://github.com/apolloconfig/apollo/pull/5610)
- OpenAPI release visibility checks: [PR #5616](https://github.com/apolloconfig/apollo/pull/5616)

## References

- https://github.com/apolloconfig/apollo/security/advisories/GHSA-4j3g-hf4q-x4vg

Page: https://cve.now/GHSA-4J3G-HF4Q-X4VG

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