Paragraphs entity embed
The module does not properly filter malicious text in the search feature. Someone with an ordinary account could run harmful code in the browser of other visitors. They could uncover hidden data and change information on the site.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if an attacker has the access right to edit the label of the content block.
- 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 Paragraphs entity embed to 4.0.1.
For developers: what the fix changed
The fix escapes the paragraph label in the autocomplete search results within the `handleAutocomplete` method of `ParagraphsEntityEmbedController`.
Also in this release The release also adds options to disable the search filter, negate the paragraph type selection, and fixes validation errors not showing in the embed dialog.
config/schema/paragraphs_entity_embed.schema.yml+6 −0paragraphs_entity_embed.install+64 −0src/Controller/ParagraphsEntityEmbedController.php+8 −16 fixsrc/Form/ParagraphEmbedDialog.php+71 −2src/Plugin/EmbedType/Paragraph.php+20 −2src/Plugin/Field/FieldWidget/EmbedParagraphsWidget.php+22 −2