Phoca Gallery (com_phocagallery) 3.1.0 to 6.1.6 - Authenticated Stored XSS via YouTube Video Link
Phoca Gallery 3.1.0 to 6.1.6 is affected by a stored cross-site scripting flaw (CWE-79) in its YouTube video support. The video ID was cut out of the submitted YouTube link without validation and written unescaped into the embed markup on the image detail and lightbox views, so a crafted link stored against a gallery item runs script in the browser of anyone who opens it, administrators included. Planting one needs a back-end account that can edit gallery images, or the front-end YouTube upload feature (off by default) with category upload rights. Fixed in 6.1.7, released 19 Nov 2026 on the current (6.x, Joomla 6) line, which validates the ID as an 11-character YouTube ID and escapes it on output. The 3.x, 4.x and 5.x release lines are stranded: their latest releases (3.2.8, 4.5.5, 5.1.3) carry the same code with no fixed release, so those sites must move to the patched 6.x package or remove the component. Interim mitigation: turn off front-end YouTube upload and check existing gallery items' video links. Published as CVE-2026-129418 on 19 November 2026, rated CVSS 4.0 7.5 (High) by the CNA and credited to Łukasz Rybak. The CVE record lists 4.2.0 to 6.1.6; the 3.x line carries the same YouTube code with no fixed release, so it is flagged too.
Affected versions: ≥ 3.1.0 and < 6.1.7
Full advisory: our disclosure post