{"answers":{"affected":"2 open source packages ship an affected version, including laravel/framework. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-13918 exists.","fix":"Upgrade laravel/framework to 11.36.0 or later.","what":"CVE-2024-13918 is a high-severity cross-site scripting vulnerability in Laravel Framework, published on 10 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-13918 and fix it if it is affected.\n\nWhat it is: CVE-2024-13918 is a high-severity cross-site scripting vulnerability in Laravel Framework, published on 10 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-13918 exists.\n\nAffected packages and fixed versions:\n- laravel/framework (Packagist): affected from 11.9.0; fixed in 11.36.0\n- laravel/framework (Packagist): affected from 11.9.0; fixed in 11.36.0\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/CVE-2024-13918/ (Markdown: https://insights.sbomify.com/CVE-2024-13918/index.md)","id":"CVE-2024-13918","markdown":"https://insights.sbomify.com/CVE-2024-13918/index.md","name":"CVE-2024-13918","record":{"aliases":["GHSA-546h-56qp-8jmw"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Laravel framework","requires_auth":"none","summary":"Attackers can execute arbitrary scripts in victim browsers via reflected XSS in Laravel's debug-mode error page, requiring debug mode to be enabled.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"sba-research","cpe":[{"product":"framework","vendor":"laravel"}],"cvss":{"score":8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"The Laravel framework versions between 11.9.0 and 11.35.1 are susceptible to reflected cross-site scripting due to an improper encoding of request parameters in the debug-mode error page.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Laravel Reflected XSS via Request Parameter in Debug-Mode Error Page","id":"CVE-2024-13918","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"Laravel Reflected XSS via Route Parameter in Debug-Mode Error Page","id":"CVE-2024-13919"},"packages":[{"ecosystem":"Packagist","fixed":["11.36.0"],"introduced":["11.9.0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-546h-56qp-8jmw"},{"ecosystem":"Packagist","fixed":["11.36.0"],"introduced":["11.9.0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-546h-56qp-8jmw"}],"prev":{"headline":"Intent Injection in Kruger\u0026Matz AppLock application","id":"CVE-2024-13917"},"products":["Laravel Framework"],"published":"2025-03-10","related":[{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2021-43617","kev_date_added":null,"published":"2021-11-14"},{"cvss_score":8.8,"headline":"OS Command Injection in Laravel Framework","id":"CVE-2020-19316","kev_date_added":null,"published":"2021-12-20"},{"cvss_score":8.8,"headline":"SQL injection in n/a","id":"CVE-2018-6330","kev_date_added":null,"published":"2019-03-28"},{"cvss_score":8,"headline":"Laravel Reflected XSS via Route Parameter in Debug-Mode Error Page","id":"CVE-2024-13919","kev_date_added":null,"published":"2025-03-10"},{"cvss_score":6.9,"headline":"Laravel has a File Validation Bypass","id":"CVE-2025-27515","kev_date_added":null,"published":"2025-03-05"},{"cvss_score":5.3,"headline":"Information disclosure in n/a","id":"CVE-2022-40482","kev_date_added":null,"published":"2023-04-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["Laravel Holdings Inc."]},"summary":"Attackers can execute arbitrary scripts in victim browsers via reflected XSS in Laravel's debug-mode error page, requiring debug mode to be enabled.","url":"https://insights.sbomify.com/CVE-2024-13918/"}