{"answers":{"affected":"2 open source packages ship an affected version, including scheb/two-factor-bundle.","exploited":"There is no known exploitation of GHSA-h6mp-mc7g-mg49 in the wild and no public exploit code.","fix":"Upgrade scheb/two-factor-bundle to 3.7.0 or later.","what":"GHSA-h6mp-mc7g-mg49 is an authentication bypass vulnerability in scheb/two-factor-bundle, published on 21 May 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-h6mp-mc7g-mg49 and fix it if it is affected.\n\nWhat it is: GHSA-h6mp-mc7g-mg49 is an authentication bypass vulnerability in scheb/two-factor-bundle, published on 21 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-h6mp-mc7g-mg49 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- scheb/two-factor-bundle (Packagist): affected from 3.0.0; fixed in 3.7.0\n- scheb/two-factor-bundle (Packagist): affected from 3.0.0; fixed in 3.7.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/GHSA-h6mp-mc7g-mg49/ (Markdown: https://insights.sbomify.com/GHSA-h6mp-mc7g-mg49/index.md)","id":"GHSA-h6mp-mc7g-mg49","markdown":"https://insights.sbomify.com/GHSA-h6mp-mc7g-mg49/index.md","name":"GHSA-h6mp-mc7g-mg49","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Symfony 2FA bundle","requires_auth":"low_privilege","summary":"An attacker can bypass two-factor authentication by generating trusted device cookies using a vulnerable JWT library, allowing unauthorized access to user accounts.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Before version 3.7 the bundle is vulnerable to a [security issue in JWT](https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/), which can be exploited by an attacker to generate trusted device cookies on their own, effectively by-passing two-factor authentication.","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":"scheb/two-factor-bundle bypass two-factor authentication with unverified JWT trusted device token","id":"GHSA-h6mp-mc7g-mg49","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["3.7.0"],"introduced":["3.0.0"],"last_affected":[],"package":"scheb/two-factor-bundle","purl":null,"source":"GHSA-h6mp-mc7g-mg49"},{"ecosystem":"Packagist","fixed":["3.7.0"],"introduced":["3.0.0"],"last_affected":[],"package":"scheb/two-factor-bundle","purl":"pkg:composer/scheb/two-factor-bundle","source":"GHSA-h6mp-mc7g-mg49"}],"products":null,"published":"2024-05-21","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":"An attacker can bypass two-factor authentication by generating trusted device cookies using a vulnerable JWT library, allowing unauthorized access to user accounts.","url":"https://insights.sbomify.com/GHSA-h6mp-mc7g-mg49/"}