CVE-2026-55746: Cotonti Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-86hp-hf3j-3m8r
CVSS 7.6
CWE-79
Published
Advisory Summary

CVE-2026-55746 is a HIGH (CVSS 7.6) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Cotonti libraries in the Packagist ecosystem. The issue involves stored cross-site scripting in the personal file storage (pfs) module. Remediation is available in the latest vendor maintenance releases.

CVE-2026-55746 at a Glance

CVE Identifier CVE-2026-55746
GHSA Identifier GHSA-86hp-hf3j-3m8r
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Cotonti
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-55746

To remediate this vulnerability, upgrade all affected Cotonti dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

cotonti/cotonti fixed: Latest secure release
Upgrade cotonti/cotonti to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for cotonti/cotonti

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-55746, inspect your project dependencies for Cotonti:

inspect dependencies for cotonti/cotonti

Analyze the terminal output to locate any version of Cotonti in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Cotonti, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-55746 Affected Cotonti Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
cotonti/cotonti
Packagist
≤ 1.0.0

References

Frequently Asked Questions

What is CVE-2026-55746?
CVE-2026-55746 is a security vulnerability in Cotonti involving Stored Cross-Site Scripting in the Personal File Storage (PFS) module under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Cotonti versions are affected?
Affected versions include releases prior to current release patches across affected packages: cotonti/cotonti.
What version fixes CVE-2026-55746?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is cotonti/cotonti affected?
Yes, cotonti/cotonti is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-55746?
CVE-2026-55746 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2026-55746?
CVE-2026-55746 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2026-55746?
Run the dependency tree command: 'inspect dependencies for cotonti/cotonti'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-86hp-hf3j-3m8r",
  "modified" : "2026-06-19T14:52:31Z",
  "published" : "2026-06-18T12:40:26Z",
  "aliases" : [ "CVE-2026-55746" ],
  "summary" : "Cotonti: Stored Cross-Site Scripting in the Personal File Storage (PFS) module",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "cotonti/cotonti"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-55746"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Cotonti/Cotonti"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Cotonti/Cotonti/blob/f43f1fc38ba4e02027786dad9dac1435c7c52b30/modules/pfs/inc/pfs.main.php#L396"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-19T14:52:31Z",
    "nvd_published_at" : "2026-06-18T08:16:34Z"
  }
}