Data field
The search feature does not properly clean up stored data before showing it as a suggestion. Someone with an ordinary account could add harmful code that runs when other people view the suggestions. They could uncover hidden information and alter data on the site.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if the attacker has the access right to edit a piece of content with this data field and the search feature is turned on for that field.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate Data field to 3.0.1 or 2.0.15, whichever branch you are on.
For developers: what the fix changed
The fix escapes the value and label returned by the autocomplete endpoint using Html::escape and Html::decodeEntities in JsonController.
src/Controller/JsonController.php+3 −2 fix