{"answers":{"affected":"4 open source packages ship an affected version, including easycorp/easyadmin-bundle.","exploited":"There is no known exploitation of GHSA-2wwr-9x6f-88gp in the wild and no public exploit code.","fix":"Upgrade easycorp/easyadmin-bundle to a fixed version for your release line: 4.29.10 or 5.0.10.","what":"GHSA-2wwr-9x6f-88gp is a path traversal vulnerability in easycorp/easyadmin-bundle, published on 1 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-2wwr-9x6f-88gp and fix it if it is affected.\n\nWhat it is: GHSA-2wwr-9x6f-88gp is a path traversal vulnerability in easycorp/easyadmin-bundle, published on 1 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-2wwr-9x6f-88gp in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- easycorp/easyadmin-bundle (Packagist): affected from 4.0.0; fixed in 4.29.10\n- easycorp/easyadmin-bundle (Packagist): affected from 4.0.0; fixed in 4.29.10\n- easycorp/easyadmin-bundle (Packagist): affected from 5.0.0; fixed in 5.0.10\n- easycorp/easyadmin-bundle (Packagist): affected from 5.0.0; fixed in 5.0.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-2wwr-9x6f-88gp/ (Markdown: https://insights.sbomify.com/GHSA-2wwr-9x6f-88gp/index.md)","id":"GHSA-2wwr-9x6f-88gp","markdown":"https://insights.sbomify.com/GHSA-2wwr-9x6f-88gp/index.md","name":"GHSA-2wwr-9x6f-88gp","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Symfony Admin Bundle","requires_auth":"low_privilege","summary":"Path traversal and XSS in EasyAdminBundle Twig components allow file disclosure and script execution if third-party templates pass unvalidated user input.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"EasyAdminBundle ships two public Twig components — `\u003ctwig:ea:Flag countryCode=\"...\"\u003e` and `\u003ctwig:ea:Icon name=\"...\"\u003e` — 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 `\u003ctwig:ea:Flag\u003e`, property `countryCode`.\n- `EasyCorp\\Bundle\\EasyAdminBundle\\Twig\\Component\\Icon` — public Twig tag `\u003ctwig:ea:Icon\u003e`, 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.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"EasyAdminBundle has path traversal and reflected XSS in Flag and Icon Twig components","id":"GHSA-2wwr-9x6f-88gp","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["4.29.10"],"introduced":["4.0.0"],"last_affected":[],"package":"easycorp/easyadmin-bundle","purl":null,"source":"GHSA-2wwr-9x6f-88gp"},{"ecosystem":"Packagist","fixed":["4.29.10"],"introduced":["4.0.0"],"last_affected":[],"package":"easycorp/easyadmin-bundle","purl":"pkg:composer/easycorp/easyadmin-bundle","source":"GHSA-2wwr-9x6f-88gp"},{"ecosystem":"Packagist","fixed":["5.0.10"],"introduced":["5.0.0"],"last_affected":[],"package":"easycorp/easyadmin-bundle","purl":null,"source":"GHSA-2wwr-9x6f-88gp"},{"ecosystem":"Packagist","fixed":["5.0.10"],"introduced":["5.0.0"],"last_affected":[],"package":"easycorp/easyadmin-bundle","purl":"pkg:composer/easycorp/easyadmin-bundle","source":"GHSA-2wwr-9x6f-88gp"}],"products":null,"published":"2026-07-01","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Path traversal and XSS in EasyAdminBundle Twig components allow file disclosure and script execution if third-party templates pass unvalidated user input.","url":"https://insights.sbomify.com/GHSA-2wwr-9x6f-88gp/"}