{"answers":{"affected":"3 open source packages ship an affected version, including psiturk and psiTurk. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-4315 in the wild and no public exploit code.","fix":"Upgrade psiturk to 3.2.1 or later.","what":"CVE-2021-4315 is a medium-severity vulnerability in NYUCCL psiTurk, published on 28 Jan 2023."},"fix_prompt":"Check this codebase for CVE-2021-4315 and fix it if it is affected.\n\nWhat it is: CVE-2021-4315 is a medium-severity vulnerability in NYUCCL psiTurk, published on 28 Jan 2023. \nExploitation: There is no known exploitation of CVE-2021-4315 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- psiturk (PyPI): affected all versions; fixed in 3.2.1\n- psiturk (PyPI): affected all versions; fixed in 3.2.1\n- psiTurk (PyPI): affected all versions; fixed in 3.2.1\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-2021-4315/ (Markdown: https://insights.sbomify.com/CVE-2021-4315/index.md)","id":"CVE-2021-4315","markdown":"https://insights.sbomify.com/CVE-2021-4315/index.md","name":"CVE-2021-4315","record":{"aliases":["GHSA-9mq4-9556-6qxq","PYSEC-2023-43"],"analysis":null,"analysis_generated_by":null,"assigner":"VulDB","cpe":[{"product":"psiturk","vendor":"psiturk"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"A vulnerability has been found in NYUCCL psiTurk up to 3.2.0 and classified as critical. This vulnerability affects unknown code of the file psiturk/experiment.py. The manipulation of the argument mode leads to improper neutralization of special elements used in a template engine. The exploit has been disclosed to the public and may be used. Upgrading to version 3.2.1 is able to address this issue. The name of the patch is 47787e15cecd66f2aa87687bf852ae0194a4335f. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-219676.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"NYUCCL psiTurk experiment.py special elements used in a template engine","id":"CVE-2021-4315","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2021"},"n_packages":3,"n_references":5,"next":{"headline":"Other in Chrome","id":"CVE-2021-4316"},"packages":[{"ecosystem":"PyPI","fixed":["3.2.1"],"introduced":["0"],"last_affected":[],"package":"psiTurk","purl":null,"source":"GHSA-9mq4-9556-6qxq"},{"ecosystem":"PyPI","fixed":["3.2.1"],"introduced":["0"],"last_affected":[],"package":"psiturk","purl":"pkg:pypi/psiturk","source":"GHSA-9mq4-9556-6qxq"},{"ecosystem":"PyPI","fixed":["3.2.1"],"introduced":["0"],"last_affected":[],"package":"psiturk","purl":"pkg:pypi/psiturk","source":"PYSEC-2023-43"}],"prev":{"headline":"Auth bypass in Zowe","id":"CVE-2021-4314"},"products":["psiTurk"],"published":"2023-01-28","related":[],"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["NYUCCL"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2021-4315/"}