# CVE-2026-41182: LangSmith SDK: Streaming token events bypass output redaction

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-04-16T01:20:37.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-rr7j-v2q5-chgv, PYSEC-2026-2583
- Weaknesses: CWE-200, CWE-359, CWE-532
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to version 0.5.19 of the JavaScript SDK and version 0.7.31 of the Python SDK, the LangSmith SDK's output redaction controls (hideOutputs in JS, hide_outputs in Python) do not apply to streaming token events. When an LLM run produces streaming output, each chunk is recorded as a new_token event containing the raw token value. These events bypass the redaction pipeline entirely — prepareRunCreateOrUpdateInputs (JS) and _hide_run_outputs (Python) only process the inputs and outputs fields on a run, never the events array. As a result, applications relying on output redaction to prevent sensitive LLM output from being stored in LangSmith will still leak the full streamed content via run events. Version 0.5.19 of the JavaScript SDK and version 0.7.31 of the Python SDK fix the issue.

(As written by CVE List.)

## Affected

- langchain-ai langsmith-sdk: < 0.5.19; < 0.7.31
- langsmith (npm): before 0.5.19
- langsmith (PyPI): before 0.7.31

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-rr7j-v2q5-chgv> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41182> (advisory)
- <https://github.com/langchain-ai/langsmith-sdk> (package)
- <https://pypi.org/project/langsmith> (package)
- <https://github.com/advisories/GHSA-rr7j-v2q5-chgv> (advisory)

## Sources

- CVE List: [CVE-2026-41182](https://www.cve.org/CVERecord?id=CVE-2026-41182), CVE Terms of Use, modified 2026-04-23
- GitHub Advisory Database: [GHSA-rr7j-v2q5-chgv](https://github.com/advisories/GHSA-rr7j-v2q5-chgv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41182](https://nvd.nist.gov/vuln/detail/CVE-2026-41182), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2583](https://osv.dev/vulnerability/PYSEC-2026-2583), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-41182 · Whole record: https://cve.day/CVE-2026-41182.json · Rebuilt by cve.day 2026-11-25T22:59:19.368Z
