{"answers":{"affected":"8 open source packages ship an affected version, including moodle/moodle. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-3810 in the wild and no public exploit code.","fix":"Upgrade moodle/moodle to a fixed version for your release line: 3.1.15, 3.4.6, 3.5.3 or 3.6.1.","what":"CVE-2019-3810 is a medium-severity cross-site scripting vulnerability in Moodle Moodle, published on 25 Mar 2019. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-3810 and fix it if it is affected.\n\nWhat it is: CVE-2019-3810 is a medium-severity cross-site scripting vulnerability in Moodle Moodle, published on 25 Mar 2019. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-3810 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- moodle/moodle (Packagist): affected from 3.1.0; fixed in 3.1.15\n- moodle/moodle (Packagist): affected from 3.1.0; fixed in 3.1.15\n- moodle/moodle (Packagist): affected from 3.4.0; fixed in 3.4.6\n- moodle/moodle (Packagist): affected from 3.4.0; fixed in 3.4.6\n- moodle/moodle (Packagist): affected from 3.5.0; fixed in 3.5.3\n- moodle/moodle (Packagist): affected from 3.5.0; fixed in 3.5.3\n- moodle/moodle (Packagist): affected from 3.6.0; fixed in 3.6.1\n- moodle/moodle (Packagist): affected from 3.6.0; fixed in 3.6.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-2019-3810/ (Markdown: https://insights.sbomify.com/CVE-2019-3810/index.md)","id":"CVE-2019-3810","markdown":"https://insights.sbomify.com/CVE-2019-3810/index.md","name":"CVE-2019-3810","record":{"aliases":["GHSA-wm4w-8vc6-2j4h","UBUNTU-CVE-2019-3810"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Moodle LMS","requires_auth":"low_privilege","summary":"Attackers can inject malicious scripts via unescaped user full names on the restricted userpix page, potentially leading to session hijacking or code execution.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"moodle","vendor":"moodle"}],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A flaw was found in moodle versions 3.6 to 3.6.1, 3.5 to 3.5.3, 3.4 to 3.4.6, 3.1 to 3.1.15 and earlier unsupported versions. The /userpix/ page did not escape users' full names, which are included as text when hovering over profile images. Note this page is not linked to by default and its access is restricted.","ecosystems":["Packagist"],"exploits":{"exploitdb":1,"first_seen":"2021-04-29","github_poc":1,"max_poc_stars":17,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-04-29T09:38:08Z","kind":"github_poc","ref":"https://github.com/farisv/Moodle-CVE-2019-3810","stars":17,"title":"Moodle (\u003c 3.6.2, \u003c 3.5.4, \u003c 3.4.7, \u003c 3.1.16) XSS PoC for Privilege Escalation (Student to Admin)"},{"date":"2021-04-30","kind":"exploitdb","ref":"49814","stars":null,"title":"Moodle 3.6.1 - Persistent Cross-Site Scripting (XSS)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Moodle XSS Vulnerability","id":"CVE-2019-3810","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":"moodle:moodle","products":["moodle:moodle"],"type":"xss","year":"2019"},"n_packages":8,"n_references":4,"next":{"headline":"Information disclosure in sssd","id":"CVE-2019-3811"},"packages":[{"ecosystem":"Packagist","fixed":["3.1.15"],"introduced":["3.1.0"],"last_affected":[],"package":"moodle/moodle","purl":null,"source":"GHSA-wm4w-8vc6-2j4h"},{"ecosystem":"Packagist","fixed":["3.1.15"],"introduced":["3.1.0"],"last_affected":[],"package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"GHSA-wm4w-8vc6-2j4h"},{"ecosystem":"Packagist","fixed":["3.4.6"],"introduced":["3.4.0"],"last_affected":[],"package":"moodle/moodle","purl":null,"source":"GHSA-wm4w-8vc6-2j4h"},{"ecosystem":"Packagist","fixed":["3.4.6"],"introduced":["3.4.0"],"last_affected":[],"package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"GHSA-wm4w-8vc6-2j4h"},{"ecosystem":"Packagist","fixed":["3.5.3"],"introduced":["3.5.0"],"last_affected":[],"package":"moodle/moodle","purl":null,"source":"GHSA-wm4w-8vc6-2j4h"},{"ecosystem":"Packagist","fixed":["3.5.3"],"introduced":["3.5.0"],"last_affected":[],"package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"GHSA-wm4w-8vc6-2j4h"},{"ecosystem":"Packagist","fixed":["3.6.1"],"introduced":["3.6.0"],"last_affected":[],"package":"moodle/moodle","purl":null,"source":"GHSA-wm4w-8vc6-2j4h"},{"ecosystem":"Packagist","fixed":["3.6.1"],"introduced":["3.6.0"],"last_affected":[],"package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"GHSA-wm4w-8vc6-2j4h"}],"prev":{"headline":"Moodle Blind SSRF Risk in /badges/mybackpack.php","id":"CVE-2019-3809"},"products":["moodle"],"published":"2019-03-25","related":[{"cvss_score":10,"headline":"File upload in n/a","id":"CVE-2006-4935","kev_date_added":null,"published":"2006-09-23"},{"cvss_score":10,"headline":"Moodle does not properly validate module instance id","id":"CVE-2006-4936","kev_date_added":null,"published":"2006-09-23"},{"cvss_score":10,"headline":"Unknown \"front page vulnerability with Moodle servers\" for Moodle before 1.3.2 has unknown impact and attack vectors.","id":"CVE-2004-2233","kev_date_added":null,"published":"2005-07-17"},{"cvss_score":10,"headline":"Cross-site scripting in n/a","id":"CVE-2004-2235","kev_date_added":null,"published":"2005-07-17"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2004-2236","kev_date_added":null,"published":"2005-07-17"},{"cvss_score":10,"headline":"Unknown vulnerability in Moodle before 1.3.4 has unknown impact and attack vectors, related to \"strings in Moodle texts.\"","id":"CVE-2004-2237","kev_date_added":null,"published":"2005-07-17"},{"cvss_score":10,"headline":"Multiple unknown vulnerabilities in Moodle before 1.5.1 have unknown impact and attack vectors.","id":"CVE-2005-2247","kev_date_added":null,"published":"2005-07-12"}],"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["[UNKNOWN]"]},"summary":"Attackers can inject malicious scripts via unescaped user full names on the restricted userpix page, potentially leading to session hijacking or code execution.","url":"https://insights.sbomify.com/CVE-2019-3810/"}