GHSA-2wwr-9x6f-88gp: Easycorp/easyadmin bundle Cross-Site Scripting Vulnerability

MODERATE
CVSS 5.3
CWE-79 CWE-73 CWE-22
Published
Advisory Summary

GHSA-2wwr-9x6f-88gp is a MODERATE (CVSS 5.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Easycorp/easyadmin bundle libraries in the Packagist ecosystem. The issue involves easyadminbundle has path traversal and reflected xss in flag and icon twig components. Remediation is available by upgrading affected packages to version 4.29.10, 5.0.10.

GHSA-2wwr-9x6f-88gp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2wwr-9x6f-88gp
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Easycorp/easyadmin bundle
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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

How to Fix GHSA-2wwr-9x6f-88gp

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

easycorp/easyadmin-bundle fixed: 4.29.10
Upgrade easycorp/easyadmin-bundle to 4.29.10
easycorp/easyadmin-bundle fixed: 5.0.10
Upgrade easycorp/easyadmin-bundle to 5.0.10
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 easycorp/easyadmin-bundle

How to Check if You Are Affected

To determine whether your application is affected by GHSA-2wwr-9x6f-88gp, inspect your project dependencies for Easycorp/easyadmin bundle:

inspect dependencies for easycorp/easyadmin-bundle

Analyze the terminal output to locate any version of Easycorp/easyadmin bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.29.10), 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 Easycorp/easyadmin bundle, 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

EasyAdminBundle ships two public Twig components — `<twig:ea:Flag countryCode="...">` and `<twig:ea:Icon name="...">` — that load SVG files from disk using a path built directly from a public component property, and then render the resulting markup with the Twig `|raw` filter. When an application binds either of those properties to data that is influenced by an end user, the lack of validation on the property value leads to two distinct issues: - Arbitrary `.svg` file disclosure (both components) — the property value is concatenated into a filesystem path without normalizing or constraining it, so `..` segments are preserved and resolved by PHP. Any file on the server whose absolute path ends in `.svg` (for example, user-uploaded SVG icons stored elsewhere on the host) can be read and embedded into the rendered page. - Reflected XSS in the admin UI (Flag component only) — when the requested flag file does not exist, the Flag component falls back to a hard-coded SVG string that interpolates the raw `countryCode` value twice, and the parent template renders that string with `|raw`. An attacker who controls `countryCode` can therefore inject arbitrary HTML/JavaScript that will execute inside the authenticated admin context that rendered the component. The first-party usage shipped by EasyAdminBundle itself is not affected: the bundle only passes ISO 3166 alpha-2 codes validated through `Symfony\Component\Intl\Countries` to the `Flag` component, and only hard-coded `internal:..` names or values previously set in PHP via `MenuItem::setIcon()` to the `Icon` component. The vulnerability is reachable only in third-party templates that pass attacker-controlled data into these properties. ### Impact Path traversal is information disclosure bounded by the `.svg` extension; reflected XSS in Flag runs in the admin context and is therefore more sensitive but requires a vulnerable template wiring and user interaction. ### Affected components - `EasyCorp\Bundle\EasyAdminBundle\Twig\Component\Flag` — public Twig tag `<twig:ea:Flag>`, property `countryCode`. - `EasyCorp\Bundle\EasyAdminBundle\Twig\Component\Icon` — public Twig tag `<twig:ea:Icon>`, property `name` when the value starts with the `internal:` prefix. ### Credit EasyAdmin would like to thank Claude Mythos Preview (via Project Glasswing and The PHP Foundation) for reporting the issue and providing the fix.

GHSA-2wwr-9x6f-88gp Affected Easycorp/easyadmin bundle Versions

2 component(s)
Fixed Versions:
4.29.105.0.10
Product / Package Ecosystem Affected Versions Fixed Version
easycorp/easyadmin-bundle
Packagist
≥ 4.0.0
< 4.29.10
4.29.10
easycorp/easyadmin-bundle
Packagist
≥ 5.0.0
< 5.0.10
5.0.10

References

Frequently Asked Questions

What is GHSA-2wwr-9x6f-88gp?
GHSA-2wwr-9x6f-88gp is a security vulnerability in Easycorp/easyadmin bundle involving EasyAdminBundle has path traversal and reflected XSS in Flag and Icon Twig components under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Easycorp/easyadmin bundle versions are affected?
Affected versions include releases prior to 4.29.10, 5.0.10 across affected packages: easycorp/easyadmin-bundle.
What version fixes GHSA-2wwr-9x6f-88gp?
Upgrading to 4.29.10, 5.0.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is easycorp/easyadmin-bundle affected?
Yes, easycorp/easyadmin-bundle is affected in releases prior to 4.29.10, 5.0.10. Upgrade your dependency to 4.29.10, 5.0.10 or later.
What is the CVSS score of GHSA-2wwr-9x6f-88gp?
GHSA-2wwr-9x6f-88gp has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with GHSA-2wwr-9x6f-88gp?
GHSA-2wwr-9x6f-88gp 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 GHSA-2wwr-9x6f-88gp?
Run the dependency tree command: 'inspect dependencies for easycorp/easyadmin-bundle'. 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-2wwr-9x6f-88gp",
  "modified" : "2026-07-01T18:18:46Z",
  "published" : "2026-07-01T18:18:46Z",
  "aliases" : [ ],
  "summary" : "EasyAdminBundle has path traversal and reflected XSS in Flag and Icon Twig components",
  "details" : "EasyAdminBundle ships two public Twig components — `<twig:ea:Flag countryCode=\"...\">` and `<twig:ea:Icon name=\"...\">` — that load SVG files from disk using a path built directly from a public component property, and then render the resulting markup with the Twig `|raw` filter.\n\nWhen an application binds either of those properties to data that is influenced by an end user, the lack of validation on the property value leads to two distinct issues:\n\n- Arbitrary `.svg` file disclosure (both components) — the property value is concatenated into a filesystem path without normalizing or constraining it, so `..` segments are preserved and resolved by PHP. Any file on the server whose absolute path ends in `.svg` (for example, user-uploaded SVG icons stored elsewhere on the host) can be read and embedded into the rendered page.\n- Reflected XSS in the admin UI (Flag component only) — when the requested flag file does not exist, the Flag component falls back to a hard-coded SVG string that interpolates the raw `countryCode` value twice, and the parent template renders that string with `|raw`. An attacker who controls `countryCode` can therefore inject arbitrary HTML/JavaScript that will execute inside the authenticated admin context that rendered the component.\n\nThe first-party usage shipped by EasyAdminBundle itself is not affected: the bundle only passes ISO 3166 alpha-2 codes validated through `Symfony\\Component\\Intl\\Countries` to the `Flag` component, and only hard-coded `internal:..` names or values previously set in PHP via `MenuItem::setIcon()` to the `Icon` component. The vulnerability is reachable only in third-party templates that pass attacker-controlled data into these properties.\n\n### Impact\n\nPath traversal is information disclosure bounded by the `.svg` extension; reflected XSS in Flag runs in the admin context and is therefore more sensitive but requires a vulnerable template wiring and user interaction.\n\n### Affected components\n\n- `EasyCorp\\Bundle\\EasyAdminBundle\\Twig\\Component\\Flag` — public Twig tag `<twig:ea:Flag>`, property `countryCode`.\n- `EasyCorp\\Bundle\\EasyAdminBundle\\Twig\\Component\\Icon` — public Twig tag `<twig:ea:Icon>`, property `name` when the value starts with the `internal:` prefix.\n\n### Credit\n\nEasyAdmin would like to thank Claude Mythos Preview (via Project Glasswing and The PHP Foundation) for reporting the issue and providing the fix.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "easycorp/easyadmin-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.29.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "easycorp/easyadmin-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.0.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/EasyCorp/EasyAdminBundle/security/advisories/GHSA-2wwr-9x6f-88gp"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/EasyCorp/EasyAdminBundle"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-73", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-01T18:18:46Z",
    "nvd_published_at" : null
  }
}