LibreChat/api/server
Dustin Healy 4772de2f0a 🩹 fix: Redact req.body.text before block-mode denyRequest
In block mode the messagePiiFilter middleware called denyRequest
before mutating req.body.text, so the original credential still
reached denyRequest. That helper builds a user message from
req.body.text and emits a `created` SSE event for it; for an existing
conversation with a parent message id it also persists the user
message to MongoDB. The assistant turn was refused but the credential
itself surfaced in the chat-history bubble and the database row.

Moved the req.body.text mutation ahead of the block branch so every
downstream code path sees the redacted text. denyRequest now builds
its user message and any persisted row from the scrubbed string, the
warn and silent paths are unchanged, and the post-handlers
(moderateText, the agent run) continue to receive redacted input.
2026-06-07 22:13:58 -07:00
..
controllers 🚧 fix: Run PII filter before OpenAI moderation on chat endpoint 2026-06-07 21:56:29 -07:00
middleware 🩹 fix: Redact req.body.text before block-mode denyRequest 2026-06-07 22:13:58 -07:00
routes 🚧 fix: Run PII filter before OpenAI moderation on chat endpoint 2026-06-07 21:56:29 -07:00
services 📻 fix: Replay MCP OAuth Prompts for Coalesced Connections (#13565) 2026-06-07 10:45:54 -04:00
utils 🧯 fix: Harden Data Retention Semantics (#13049) 2026-05-19 21:58:42 -04:00
cleanup.js 🧹 refactor: Tighten Config Schema Typing and Remove Deprecated Fields (#12452) 2026-03-29 01:10:57 -04:00
experimental.js 🗂️ feat: Add Private Chat Projects (#13467) 2026-06-03 15:29:18 -04:00
index.js 🗂️ feat: Add Deployment Skill Directory (#13523) 2026-06-05 10:24:28 -04:00
index.metrics.spec.js ⚖️ feat: Add Operational Prometheus Metrics (#13265) 2026-05-22 20:47:41 -04:00
index.spec.js 🚦 fix: Gate Chat Starts During Readiness (#13502) 2026-06-04 00:09:10 -04:00
socialLogins.js feat: Make OpenID Token Reuse Window Configurable (#13546) 2026-06-06 15:15:58 -04:00
socialLogins.spec.js feat: Make OpenID Token Reuse Window Configurable (#13546) 2026-06-06 15:15:58 -04:00
telemetry.js 📡 feat: Add Backend OpenTelemetry Tracing (#12909) 2026-05-14 09:08:55 -04:00
telemetry.spec.js 📡 feat: Add Backend OpenTelemetry Tracing (#12909) 2026-05-14 09:08:55 -04:00