feat(config): add aiOutputSecurity settings for URL filtering#37
Merged
feat(config): add aiOutputSecurity settings for URL filtering#37
Conversation
Add support for AI output security settings that mitigate prompt injection attacks (CVE-2025-32711 / EchoLeak) by filtering external URLs in AI-generated content. New settings: - allowedImageDomains: List of domains allowed for external images - allowedLinkDomains: List of domains allowed for external links Features: - Supports wildcard domains (e.g., *.example.com) - Default: promptahuman.com for images, none for links - Use '*' to allow all domains (not recommended) - Blocked images replaced with placeholder - Blocked links have href set to '#'
e309411 to
950270d
Compare
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issues
Solution
Add support for the
aiOutputSecurityconfiguration settings that mitigate prompt injection attacks (CVE-2025-32711 / EchoLeak style) that attempt to exfiltrate data via malicious URLs in AI-generated content.New settings:
allowedImageDomains: List of domains allowed for external images (default:promptahuman.com)allowedLinkDomains: List of domains allowed for external links (default: none - all blocked)Features:
*.example.com)*to allow all domains (not recommended)hrefset to#Files changed:
aiOutputSecuritymapping to both schema filesChecklist