LibreChat/packages
Danny Avila ee44c6344d
🔒 feat: Sanitize Placeholders in User-provided MCP Server Config (#11486)
* 🔒 feat: Sanitize Placeholders in User-provider MCP Server Config Headers

* Implemented sanitization for dangerous credential placeholders in headers to prevent credential exfiltration when MCP servers are shared.
* Added tests to verify that dangerous placeholders are stripped from headers during both add and update operations, while safe placeholders are preserved.
* Refactored ServerConfigsDB to include a new sanitizeCredentialPlaceholders function for header processing.

* ci: tests for preserving credential placeholders in YAML configs

* Introduced new tests to ensure that LIBRECHAT_OPENID and LIBRECHAT_USER placeholders are preserved in admin configuration headers when added to the cache.
* Validated that the expected placeholders remain intact during retrieval, enhancing the integrity of configuration management.
2026-01-23 09:06:29 -05:00
..
api 🔒 feat: Sanitize Placeholders in User-provided MCP Server Config (#11486) 2026-01-23 09:06:29 -05:00
client 🔖 fix: Announce Bookmark Selection State (#11450) 2026-01-21 13:49:50 -05:00
data-provider 🧑‍🏫 fix: Multi-Agent Instructions Handling (#11484) 2026-01-22 19:36:06 -05:00
data-schemas 📦 chore: bump lodash version to ^4.17.23 (#11476) 2026-01-22 09:46:08 -05:00