USWDS Paragraph Components
The module's templates do not sufficiently sanitise values passed to its markup. An ordinary account on the site could view restricted information and alter or add new data by injecting malicious scripts.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youAn attacker must have a role to edit content that uses the paragraph bundles provided by the module.
- 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 USWDS Paragraph Components to 3.1.3.
For developers: what the fix changed
The fix removes the raw filter from column values and replaces field_text.value|raw with field_text.processed in multiple Twig templates to ensure proper sanitisation.
modules/uswds_paragraph_components_cards/templates/paragraph--uswds-card-group-flag.html.twig+3 −3 fixmodules/uswds_paragraph_components_cards/templates/paragraph--uswds-card-group-regular.html.twig+3 −3 fixmodules/uswds_paragraph_components_cards/templates/regular-cards.html.twig+1 −1 fixmodules/uswds_paragraph_components_columns/templates/paragraph--uswds-2-columns.html.twig+1 −1 fixmodules/uswds_paragraph_components_columns/templates/paragraph--uswds-3-columns.html.twig+1 −1 fix