Versions Affected: All.
Fixed Versions: 3.2.2, 3.1.4, 3.0.12
When developers generate html options tags manually, user input concatenated with manually built tags may not be escaped and an attacker can inject arbitrary HTML in to the document.
Only manually generated select tag options are impacted, but all users running an affected release should either upgrade or use one of the work arounds immediately.
The 3.2.2, 3.1.4, and 3.0.12 releases are available at the normal locations.
To work around this issue, escape manually built option tags passed to the select helper. For example:
AFTER (values are escaped):
To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.
* 3-2-select_options.patch - Patch for 3.2 series
* 3-1-select_options.patch - Patch for 3.1 series
* 3-0-select_options.patch - Patch for 3.0 series
Please note that only the 3.2.x, 3.1.x, and 3.0.x series are supported at present. Users of earlier unsupported releases are advised to upgrade as soon as possible.
Credit for these patches goes to Sergey Nartimov! Thank you!