{"answers":{"affected":"3 open source packages ship an affected version, including flask-security-too and Flask-Security-Too. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-49438 exists.","fix":"Upgrade flask-security-too to 5.3.3 or later.","what":"CVE-2023-49438 is a medium-severity vulnerability in n/a, published on 26 Dec 2023. 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-2023-49438 and fix it if it is affected.\n\nWhat it is: CVE-2023-49438 is a medium-severity vulnerability in n/a, published on 26 Dec 2023. 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-2023-49438 exists.\n\nAffected packages and fixed versions:\n- flask-security-too (PyPI): affected all versions; fixed in 5.3.3\n- flask-security-too (PyPI): affected all versions; fixed in 5.3.3\n- Flask-Security-Too (PyPI): affected all versions; fixed in 5.3.3\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-2023-49438/ (Markdown: https://insights.sbomify.com/CVE-2023-49438/index.md)","id":"CVE-2023-49438","markdown":"https://insights.sbomify.com/CVE-2023-49438/index.md","name":"CVE-2023-49438","record":{"aliases":["GHSA-672h-6x89-76m5","PYSEC-2023-248","openSUSE-SU-2024:13563-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python security library","requires_auth":"none","summary":"Attackers can redirect users to malicious sites via crafted URLs in Flask-Security-Too, potentially facilitating phishing attacks.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"flask-security-too","vendor":"flask-security-too_project"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"An open redirect vulnerability in the python package Flask-Security-Too \u003c=5.3.2 allows attackers to redirect unsuspecting users to malicious sites via a crafted URL by abusing the ?next parameter on the /login and /register routes.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2023-12-14","github_poc":1,"max_poc_stars":5,"metasploit":0,"nuclei":1,"refs":[{"date":"2023-12-14T23:58:42Z","kind":"github_poc","ref":"https://github.com/brandon-t-elliott/CVE-2023-49438","stars":5,"title":"CVE-2023-49438 - Open Redirect Vulnerability in Flask-Security-Too"},{"date":null,"kind":"nuclei","ref":"http/cves/2023/CVE-2023-49438.yaml","stars":null,"title":"Python Flask-Security-Too \u003c=5.3.2 - Open Redirect"}],"tier":"weaponised"},"has_fix":true,"headline":"Open redirect vulnerability in Flask-Security-Too","id":"CVE-2023-49438","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"open_redirect","year":"2023"},"n_packages":3,"n_references":3,"next":{"headline":"SQL injection in n/a","id":"CVE-2023-49440"},"packages":[{"ecosystem":"PyPI","fixed":["5.3.3"],"introduced":["0"],"last_affected":[],"package":"Flask-Security-Too","purl":null,"source":"GHSA-672h-6x89-76m5"},{"ecosystem":"PyPI","fixed":["5.3.3"],"introduced":["0"],"last_affected":[],"package":"flask-security-too","purl":"pkg:pypi/flask-security-too","source":"GHSA-672h-6x89-76m5"},{"ecosystem":"PyPI","fixed":["5.3.3"],"introduced":["0"],"last_affected":[],"package":"flask-security-too","purl":"pkg:pypi/flask-security-too","source":"PYSEC-2023-248"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2023-49437"},"products":["n/a"],"published":"2023-12-26","related":[{"cvss_score":7.4,"headline":"CSRF can expose users authentication token in Flask-Security-Too","id":"CVE-2021-21241","kev_date_added":null,"published":"2021-01-11"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-11-04","vendors":["n/a"]},"summary":"Attackers can redirect users to malicious sites via crafted URLs in Flask-Security-Too, potentially facilitating phishing attacks.","url":"https://insights.sbomify.com/CVE-2023-49438/"}