Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-55209 Overview
CVE-2025-55209 is a stored cross-site scripting (XSS) vulnerability in the contactmanager module for FreePBX, an open-source GUI for managing Asterisk PBX systems. A low-privileged User Control Panel (UCP) user can inject malicious JavaScript into stored contact data. The injected script executes in an administrator's browser session when the admin interacts with the affected component. This leads to session hijacking and potential privilege escalation from a standard UCP account to full administrative control of the PBX. The flaw is classified under [CWE-79] (Improper Neutralization of Input During Web Page Generation).
Critical Impact
A low-privileged UCP user can execute arbitrary JavaScript in an administrator's session, enabling session hijacking and privilege escalation over the FreePBX management interface.
Affected Products
- FreePBX contactmanager module versions 15.0.14 and below
- FreePBX contactmanager module versions 16.0.0 through 16.0.26.4
- FreePBX contactmanager module versions 17.0.0 through 17.0.5
Discovery Timeline
- 2025-09-04 - CVE-2025-55209 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-55209
Vulnerability Analysis
The contactmanager module stores contact records that are rendered in the FreePBX administrative UI and the User Control Panel. Fields such as displayname, fname, lname, and title are written by UCP users and later output without sufficient neutralization. Any HTML or JavaScript submitted by a low-privileged UCP user is stored server-side and delivered to other users, including administrators, when the contact list or related views are loaded.
Because the payload executes with the privileges of the viewing user, an administrator loading the affected view runs attacker-controlled JavaScript inside an authenticated FreePBX session. Attackers can use this foothold to exfiltrate session cookies, issue authenticated requests on the admin's behalf, create new privileged accounts, or modify PBX routing and voicemail configurations.
Root Cause
The root cause is missing output encoding on contact fields sourced from user-controlled input. The patch in commit 55abba0f1ab5d66ba87732fd06179231d1f68184 reworks how contact entries are assembled and displayed, and normalizes the source of display fields using COALESCE to prefer sanitized user records over free-form entries.
Attack Vector
Exploitation requires a valid UCP account (PR:L) and user interaction from an administrator (UI:P). The attacker submits contact data containing an HTML or script payload through the UCP interface. When an administrator subsequently views the contact list or a related contactmanager view, the stored payload renders and executes in the admin's authenticated browser session.
// Patch excerpt from Contactmanager.class.php
// Source: https://github.com/FreePBX/contactmanager/commit/55abba0f1ab5d66ba87732fd06179231d1f68184
'e.id',
'e.groupid',
'e.user',
- 'e.displayname',
- 'e.fname',
- 'e.lname',
- 'e.title',
+ 'COALESCE(e.displayname,u.displayname,u.fname,u.username) as displayname',
+ 'COALESCE(e.fname,u.fname) as fname',
+ 'COALESCE(e.lname,u.lname) as lname',
+ 'COALESCE(e.title,u.title) as title',
'e.company',
);
$sql = "SELECT " . implode(', ', $fields) . " FROM contactmanager_group_entries as e";
The patch replaces direct selection of user-writable contact entry fields with COALESCE calls that prefer authoritative user records, reducing the surface where unsanitized UCP input reaches the admin UI.
Detection Methods for CVE-2025-55209
Indicators of Compromise
- Contact records in the contactmanager_group_entries table containing HTML tags, <script> blocks, on*= event handlers, or javascript: URIs in displayname, fname, lname, or title fields.
- Unexpected administrative actions performed shortly after an admin loaded the Contact Manager view, including new admin accounts, modified extensions, or altered outbound routes.
- Outbound HTTP requests from an admin browser session to unfamiliar domains immediately after viewing UCP-sourced contact data.
Detection Strategies
- Query the contactmanager_group_entries table for stored values matching XSS patterns such as <script, onerror=, onload=, or javascript:.
- Review FreePBX web server access logs for POST requests from UCP users to contactmanager endpoints followed by admin GET requests to the same views.
- Correlate FreePBX admin panel changes (new users, module installs, route changes) with recent contactmanager activity from non-admin UCP users.
Monitoring Recommendations
- Enable and forward FreePBX web and audit logs to a central SIEM for correlation between UCP writes and admin reads.
- Alert on creation or modification of administrative accounts and dialplan routes outside of change windows.
- Monitor for browser-driven anomalies such as admin sessions issuing bulk API calls in rapid succession.
How to Mitigate CVE-2025-55209
Immediate Actions Required
- Upgrade the FreePBX contactmanager module to version 15.0.14, 16.0.27, or 17.0.6 depending on your major release.
- Audit existing contact records for stored HTML or script content and remove any suspicious entries before administrators re-open the module.
- Rotate FreePBX administrator credentials and invalidate active admin sessions if exploitation is suspected.
Patch Information
The vulnerability is fixed in contactmanager versions 15.0.14, 16.0.27, and 17.0.6. The fix is implemented in commit 55abba0f1ab5d66ba87732fd06179231d1f68184, which normalizes how contact display fields are sourced and rendered. Reference the GitHub Security Advisory GHSA-j654-x3q2-6wm3 and the upstream commit for full details.
Workarounds
- Restrict UCP access to trusted users only until the module can be patched.
- Temporarily disable the contactmanager module in FreePBX if it is not required for operations.
- Limit administrative panel access to trusted networks using firewall rules or reverse-proxy allowlists.
# Update the contactmanager module on a FreePBX system
fwconsole ma downloadinstall contactmanager
fwconsole ma upgrade contactmanager
fwconsole reload
# Verify the installed version meets the fixed release
fwconsole ma list | grep contactmanager
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

