Single directory component Embed
The module does not properly check the data provided by the content author before displaying it. An ordinary account on the site could insert malicious scripts into the page. This could allow them to view hidden data or 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 a user has the access right to use a text format that has the embed filter enabled.
- 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 Single directory component Embed to 1.4.1.
For developers: what the fix changed
The fix introduces a PropValidator service to validate component availability, props, and slots before rendering embeds, rejecting render properties and dangerous URLs. This validation is applied in SdcEmbedController::preview, SdcEmbedFilter::process, and SdcSlotSource::buildRenderArray.
Also in this release The release also includes automated Drupal 12 compatibility fixes, PHPUnit attributes for tests, and moves hook implementations to an object oriented hook class.
.gitignore+1 −0CHANGELOG.md+18 −0README.md+21 −0composer.json+2 −1modules/sdc_embed_demo/sdc_embed_demo.info.yml+1 −1sdc_embed.info.yml+1 −1sdc_embed.module+4 −16sdc_embed.services.yml+11 −0 fixsrc/Controller/SdcEmbedController.php+22 −18 fixsrc/Hook/SdcEmbedHooks.php+38 −0src/Plugin/Filter/SdcEmbedFilter.php+19 −15 fixsrc/Plugin/SlotSource/SdcSlotSource.php+8 −2 fix