Inside "Anemone": How the Drupal Security Team Handled a Core XSS Vulnerability
In her blog post, Jess (xjm) reveals the backstory of SA-CORE-2025-004, a Drupal core security advisory addressing a cross-site scripting (XSS) vulnerability in the Link module. Internally dubbed "Anemone," the flaw stemmed from improper sanitization of the options property in link fields. The team faced two key challenges: ensuring the core fix didn't break over 60 contributed modules and identifying which of those were also vulnerable.
The solution—led by longwave and implemented by larowlan—involved enhancing sanitisation logic without modifying shared APIs in a security release. This required duplicating and adjusting XSS-related code specifically for the advisory, with plans to refactor post-release. Jess explains how the five contributed modules required individual attention, with three receiving separate advisories. The disclosure was coordinated and published alongside three contrib advisories on March 19, 2025.
The post highlights a meticulous process involving code duplication, API strategy, and ecosystem audits.


