DRUPAL-CONTRIB-2026-131unknown
DRUPAL-CONTRIB-2026-131
The advisory, in context
This module enables you to add dynamic caption support to PhotoSwipe image galleries.
The module doesn't sufficiently sanitize user-supplied input (such as image alt tags) in its dynamic caption script, leading to a Cross-Site Scripting (XSS) vulnerability.
This vulnerability is mitigated by the fact that an attacker must have a role that permits them to enter HTML content.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
drupal/photoswipe Packagist:https://packages.drupal.org/8
Ecosystem versions
Earlier releases before 5.0.9
Fixed in 5.0.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.0.9"
}
],
"type": "ECOSYSTEM",
"database_specific": {
"constraint": "<5.0.9"
}
}
],
"versions": []
}