# CVE-2021-41130: X-Endpoint-API-UserInfo can be spoofed in cloudendpoints Extensible Service Proxy

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.39% (percentile 25, 2026-11-26)
- **CWE:** CWE-290
- **Published:** 2021-10-07T18:30:17.000Z
- **Modified:** 2026-06-17T04:07:56.007Z

## Who should check

- Anyone running cloudendpoints esp \< 1.58.0

## Description

Extensible Service Proxy, a.k.a. ESP is a proxy which enables API management capabilities for JSON/REST or gRPC API services. ESPv1 can be configured to authenticate a JWT token. Its verified JWT claim is passed to the application by HTTP header "X-Endpoint-API-UserInfo", the application can use it to do authorization. But if there are two "X-Endpoint-API-UserInfo" headers from the client, ESPv1 only replaces the first one, the 2nd one will be passed to the application. An attacker can send two "X-Endpoint-API-UserInfo" headers, the second one with a fake JWT claim. Application may use the fake JWT claim to do the authorization. This impacts following ESPv1 usages: 1) Users have configured ESPv1 to do JWT authentication with Google ID Token as described in the referenced google endpoint document. 2) Users backend application is using the info in the "X-Endpoint-API-UserInfo" header to do the authorization. It has been fixed by v1.58.0. You need to patch it in the following ways: \* If your docker image is using tag ":1", needs to re-start the container to pick up the new version. The tag ":1" will automatically point to the latest version. \* If your docker image tag pings to a specific minor version, e.g. ":1.57". You need to update it to ":1.58" and re-start the container. There are no workaround for this issue.

## Affected and fixed versions

- cloudendpoints esp: \< 1.58.0 (cvelist)

## Mitigation

- Upgrade esp to 1.58.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-41130. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-41130.md
Affected: cloudendpoints esp < 1.58.0
Fixed in: cloudendpoints esp 1.58.0

Steps:
1. Search this machine and project for cloudendpoints esp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-41130 being exploited?

There is no confirmed exploitation: CVE-2021-41130 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-41130?

Medium: CVSS 6.4 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2021-41130?

cloudendpoints esp \< 1.58.0.

### Is there a fix for CVE-2021-41130?

Yes. Fixed in cloudendpoints esp 1.58.0. Upgrade esp to 1.58.0 or later.

### How do I check if I'm affected by CVE-2021-41130?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/cloudendpoints/esp/security/advisories/GHSA-43wx-8qmj-9r9q>
- vendor: <https://cloud.google.com/endpoints/docs/openapi/authenticating-users-google-id>
- patch: <https://github.com/cloudendpoints/esp/commit/e310c4f91d229a072507f80c73811489b4cdff27>
- other: <https://github.com/cloudendpoints/esp/releases/tag/v1.58.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-41130>

HTML: <https://flawdb.com/CVE-2021-41130> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-41130>
