medium CVSS 6.1

CVE-2026-45753·PHP vulnerability

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, UrlAttributeSanitizer::getSupportedAttributes() omits URL-valued attributes including action, formaction, poster, and cite, so configurations that admit those attributes can leave javascript: URIs unsanitized and enable XSS when the resulting HTML is rendered or a victim submits a form or clicks a button. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.

Severity
medium
Software
PHP
Fixed in
8.0.12
Published
2026-07-14

Affected versions

From: 8.0.0

Until: 8.0.12

Fixed in: 8.0.12

How to fix this CVE

Update Symfony to version 8.0.12 or later to patch the UrlAttributeSanitizer vulnerability that fails to sanitize javascript: URIs in HTML form attributes. This vulnerability allows attackers to inject malicious JavaScript through form action, button formaction, video poster, and blockquote cite attributes when user input is processed without proper URL validation. Ensure your PHP environment runs Symfony 8.0.12 or above, and test your application's HTML sanitization behavior after patching.

sudo dnf update php php-symfony

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST|GET.*action=(['"])?javascript:|formaction=(['"])?javascript:|poster=(['"])?javascript:|cite=(['"])?javascript:

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Implement ModSecurity or similar WAF rules to block HTTP requests containing javascript: URI scheme in form action, formaction, poster, or cite HTML attributes. Example rule: SecRule ARGS|REQUEST_BODY '@rx (?:action|formaction|poster|cite)\s*=\s*["\']?javascript:' 'id:1000,phase:2,deny,status:403,msg:Potential XSS via URL attribute'

How to check if you are affected

  1. Check installed Symfony version: php -r 'echo Symfony\Component\HttpKernel\Kernel::VERSION;' or grep -r "VERSION" vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php
  2. Verify UrlAttributeSanitizer class location: find /path/to/app -name 'UrlAttributeSanitizer.php' -exec grep -l 'getSupportedAttributes' {} \;
  3. Search application logs for XSS-related errors or warnings: grep -i 'javascript\|xss\|sanitiz' /var/log/php-errors.log /var/log/apache2/error.log /var/log/nginx/error.log
  4. Confirm patched version is running: php -v and verify Symfony version is 8.0.12 or higher by examining composer.lock or running composer show symfony/symfony

FAQ

What is CVE-2026-45753?

This vulnerability affects Symfony's UrlAttributeSanitizer class, which fails to properly filter URL-type HTML attributes (action, formaction, poster, cite) for malicious javascript: URIs. An attacker can inject XSS payloads through these attributes that execute when the page renders or a form is submitted.

Is CVE-2026-45753 being actively exploited?

No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits have been disclosed, though it remains a medium-severity risk requiring patching.

What versions of PHP are affected by CVE-2026-45753?

This vulnerability affects Symfony versions 8.0.0 through 8.0.11. It was also present in Symfony 6.1.0-BETA1 through 6.4.39 and 7.0.0 through 7.4.11. Update to Symfony 8.0.12 or later to resolve the issue.

How do I check if my server is vulnerable to CVE-2026-45753?

Run 'php -r "require 'vendor/autoload.php'; echo Symfony\Component\HttpKernel\Kernel::VERSION;"' to check your Symfony version. If it reports 8.0.0 through 8.0.11, your system is vulnerable.

Does Defensia detect CVE-2026-45753?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP with Symfony is installed on a monitored server, CVE-2026-45753 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-45753. Free for 1 server.

Get started free