LibreChat/api
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
..
app 📎 fix: Preserve Provider Document Uploads (#13550) 2026-06-06 10:03:32 -04:00
cache 🪂 feat: Graceful HTTP shutdown on SIGTERM/SIGINT (#13211) 2026-05-20 13:33:53 -04:00
config 🗂️ feat: Allow Disabling File Log Transports (#13215) 2026-05-20 23:16:56 -04:00
db ⚖️ feat: Add Operational Prometheus Metrics (#13265) 2026-05-22 20:47:41 -04:00
models 🗑️ chore: Remove Action Test Suite and Update Mock Implementations (#12268) 2026-03-21 14:28:55 -04:00
server 🩹 fix: Redact req.body.text before block-mode denyRequest 2026-06-07 22:13:58 -07:00
strategies 🪜 feat: Add OpenID Role Sync (#13415) 2026-06-02 14:00:56 -04:00
test 🪵 chore: Restore Winston Format Factory Shape In Test Mocks (#13139) 2026-05-15 14:51:53 -04:00
utils 🧮 chore: Update Gemma Context Token Defaults (#13410) 2026-05-30 00:29:19 -04:00
jest.config.js 📜 feat: Improve Skill Authoring Guidance (#13517) 2026-06-04 18:36:16 -04:00
jsconfig.json
package.json 🔧 chore: Update ESLint config, Import Sorting script, Test Sharding, Bump @librechat/agents (#13552) 2026-06-06 12:31:55 -04:00
typedefs.js 🧬 chore: Align LibreChat With Agents LangChain Upgrade (#12922) 2026-05-03 12:46:01 -04:00