Vulnerability library
Security checkApril 24, 2026

LangSmith SDK: Streaming token events bypass output redaction

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmlangsmith

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the langsmith package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 0.5.18
  • Patched version(s): 0.5.19

References

Could your website be exposed too?

SmartScanner can check your website for LangSmith SDK: Streaming token events bypass output redaction and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 24, 2026