{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-3831 exists.","fix":"No fix has been published for CVE-2021-3831 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-3831 is a high-severity cross-site scripting vulnerability in gnuboard/gnuboard5, published on 14 Dec 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3831 and fix it if it is affected.\n\nWhat it is: CVE-2021-3831 is a high-severity cross-site scripting vulnerability in gnuboard/gnuboard5, published on 14 Dec 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-3831 exists.\n\nAffected product: gnuboard/gnuboard5. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-3831/ (Markdown: https://insights.sbomify.com/CVE-2021-3831/index.md)","id":"CVE-2021-3831","markdown":"https://insights.sbomify.com/CVE-2021-3831/index.md","name":"CVE-2021-3831","record":{"aliases":["GHSA-xq54-j4gh-pm4j"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"gnuboard5 web application","requires_auth":"low_privilege","summary":"Attackers can inject malicious scripts into gnuboard5 pages, potentially stealing user data or hijacking sessions.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"gnuboard5","vendor":"gnuboard"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"gnuboard5 is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-07-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-07-20T09:36:51Z","kind":"github_poc","ref":"https://github.com/aratane/CVE-2021-3831","stars":0,"title":"Unauthenticated Sensitive Information Disclosure"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-3831.yaml","stars":null,"title":"Gnuboard 5 - Cross-Site Scripting"}],"tier":"weaponised"},"has_fix":false,"headline":"Cross-site Scripting (XSS) - Reflected in gnuboard/gnuboard5","id":"CVE-2021-3831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"Integria IMS Remote Code Execution","id":"CVE-2021-3832"},"packages":[],"prev":{"headline":"Cross-site Scripting (XSS) - Stored in btcpayserver/btcpayserver","id":"CVE-2021-3830"},"products":["gnuboard/gnuboard5"],"published":"2021-12-14","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"2024-08-03","vendors":["gnuboard"]},"summary":"Attackers can inject malicious scripts into gnuboard5 pages, potentially stealing user data or hijacking sessions.","url":"https://insights.sbomify.com/CVE-2021-3831/"}