Skip to content

feat(config): add aiOutputSecurity settings for URL filtering#37

Merged
jjroelofs merged 1 commit into1.xfrom
jur/1.x/36-add-ai-output-security-settings
Dec 2, 2025
Merged

feat(config): add aiOutputSecurity settings for URL filtering#37
jjroelofs merged 1 commit into1.xfrom
jur/1.x/36-add-ai-output-security-settings

Conversation

@jjroelofs
Copy link
Copy Markdown
Contributor

Linked issues

Solution

Add support for the aiOutputSecurity configuration 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:

  • Supports wildcard domains (e.g., *.example.com)
  • Use * to allow all domains (not recommended)
  • Blocked images replaced with placeholder
  • Blocked links have href set to #

Files changed:

  • Schema: Added aiOutputSecurity mapping to both schema files
  • Form: Added "AI Output Security" fieldset with textarea inputs for domain lists
  • Config mapping: Added mappings for the new settings
  • getDynamicPluginConfig: Pass settings to JavaScript with sensible defaults

Checklist

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 '#'
@jjroelofs jjroelofs force-pushed the jur/1.x/36-add-ai-output-security-settings branch from e309411 to 950270d Compare December 2, 2025 08:14
@jjroelofs jjroelofs merged commit c581679 into 1.x Dec 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(config): Add aiOutputSecurity settings for URL filtering

1 participant