# CVE-2026-41487: Langfuse: Improper role-based-access control in Langfuse LLM connection management allowed users of role “member” to retrieve stored LLM provider API keys

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

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-284
- **Published:** 2026-05-08T14:27:48.588Z
- **Modified:** 2026-11-11T20:10:00.273Z

## Who should check

- Anyone running langfuse \>= 3.68.0, \< 3.167.0

## Description

Langfuse is an open source large language model engineering platform. From version 3.68.0 to before version 3.167.0, there is  a role-based-access control flaw in the LLM connection update flow. An authenticated, low-privileged user of role “member” in a project could request the update of an existing LLM connection to an attacker-controlled baseUrl, causing Langfuse to reuse the stored provider secret and redirect the test request to an attacker-controlled endpoint. This could expose the plaintext provider LLM API key for that connection. The attack is only possible if a user is already part of a project and has “member” scoped access. This issue has been patched in version 3.167.0.

## Affected and fixed versions

- langfuse: \>= 3.68.0, \< 3.167.0 (cvelist)

## Mitigation

- Upgrade langfuse to 3.167.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-2026-41487. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-41487.md
Affected: langfuse >= 3.68.0, < 3.167.0
Fixed in: langfuse 3.167.0

Steps:
1. Search this machine and project for langfuse: 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-2026-41487 being exploited?

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

### How serious is CVE-2026-41487?

Medium: CVSS 5.3 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-41487?

langfuse \>= 3.68.0, \< 3.167.0.

### Is there a fix for CVE-2026-41487?

Yes. Fixed in langfuse 3.167.0. Upgrade langfuse to 3.167.0 or later.

### How do I check if I'm affected by CVE-2026-41487?

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/langfuse/langfuse/security/advisories/GHSA-2524-j966-gfgh>
- patch: <https://github.com/langfuse/langfuse/pull/13027>
- patch: <https://github.com/langfuse/langfuse/pull/13055>
- patch: <https://github.com/langfuse/langfuse/commit/7527bb0d84bc0a3dc24a4b16d22ed2e46e6dddff>
- patch: <https://github.com/langfuse/langfuse/commit/e12386f9d4368bbfff24a4ad7fd53641091605ff>
- other: <https://github.com/langfuse/langfuse/releases/tag/v3.167.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-2026-41487>

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