Cotonti: Stored Cross-Site Scripting in the Personal File Storage (PFS) module
High severity
GitHub Reviewed
Published
Jun 18, 2026
to the GitHub Advisory Database
•
Updated Jun 19, 2026
Description
Published by the National Vulnerability Database
Jun 18, 2026
Published to the GitHub Advisory Database
Jun 18, 2026
Reviewed
Jun 19, 2026
Last updated
Jun 19, 2026
Cotonti 1.0.0 (master branch, commit f43f1fc3) is vulnerable to stored Cross-Site Scripting in the Personal File Storage (PFS) module. A folder title (pff_title) is imported with the 'TXT' filter, which does not strip or encode HTML (the tag check in cot_import is disabled), so an authenticated user can store HTML/JavaScript in a folder title. In modules/pfs/inc/pfs.main.php the title is assigned to the template variable PFF_ROW_TITLE without htmlspecialchars(), and modules/pfs/tpl/pfs.tpl outputs {PFF_ROW_TITLE} unescaped. When the folder listing is viewed (including by other users for public folders), the injected script executes in the victim's browser.
References