This CVE exposes a category error that security reviews consistently miss: configuration values crossing abstraction boundaries without their trust assumptions being re-evaluated. The mail.allowed_attachment_hostnames setting in Thunderbird was designed as a simple allowlist—take a hostname, match it against incoming attachment URLs. What developers apparently failed to model was the transformation point where that hostname value gets interpolated into a regex engine. The setting wasn't being treated as code, but by the time it reached the regex, it was.

The fix—escaping regex metacharacters in the hostname value—is straightforward and correct. But the deeper question is whether your codebase has other places where admin-supplied config values are interpolated into regex, format strings, or query builders without escaping. Advanced settings panels are particularly fertile ground for this failure mode: they're considered expert-only but rarely get security-critical classification, even when they gate network resource loading decisions.

What to check: audit your configuration system for settings that take user or admin input and pass it into any execution context—regex, shell, SQL, URL construction, template rendering. The trust boundary isn't the config file; it's whatever happens downstream. If your review process audits config definitions but not the full data flow from config value to execution, you're missing the point where security invariants get silently dropped. This pattern has a rich history across ecosystems (Apache mod_rewrite, Django, Kubernetes ingress controllers); treating it as a one-off coding error guarantees the next instance.