{"answers":{"affected":"2 open source packages ship an affected version, including akaunting/akaunting. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-36804 in the wild and no public exploit code.","fix":"Upgrade akaunting/akaunting to 2.1.13 or later.","what":"CVE-2021-36804 is a medium-severity vulnerability in Akaunting, published on 4 Aug 2021."},"fix_prompt":"Check this codebase for CVE-2021-36804 and fix it if it is affected.\n\nWhat it is: CVE-2021-36804 is a medium-severity vulnerability in Akaunting, published on 4 Aug 2021. \nExploitation: There is no known exploitation of CVE-2021-36804 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- akaunting/akaunting (Packagist): affected all versions; fixed in 2.1.13\n- akaunting/akaunting (Packagist): affected all versions; fixed in 2.1.13\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-36804/ (Markdown: https://insights.sbomify.com/CVE-2021-36804/index.md)","id":"CVE-2021-36804","markdown":"https://insights.sbomify.com/CVE-2021-36804/index.md","name":"CVE-2021-36804","record":{"aliases":["GHSA-246r-r2wf-frhx"],"analysis":null,"analysis_generated_by":null,"assigner":"rapid7","cpe":[{"product":"akaunting","vendor":"akaunting"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-640","name":"Weak Password Recovery Mechanism for Forgotten Password"}],"description":"Akaunting version 2.1.12 and earlier suffers from a password reset spoofing vulnerability, wherein an attacker can proxy password reset requests through a running Akaunting instance, if that attacker knows the target's e-mail address. This issue was fixed in version 2.1.13 of the product. Please note that this issue is ultimately caused by the defaults provided by the Laravel framework, specifically how proxy headers are handled with respect to multi-tenant implementations. In other words, while this is not technically a vulnerability in Laravel, this default configuration is very likely to lead to practically identical identical vulnerabilities in Laravel projects that implement multi-tenant applications.","ecosystems":["Packagist"],"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":"Akaunting Password Reset Relay","id":"CVE-2021-36804","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":null,"year":"2021"},"n_packages":2,"n_references":3,"next":{"headline":"Akaunting Invoice Footer Persistent XSS","id":"CVE-2021-36805"},"packages":[{"ecosystem":"Packagist","fixed":["2.1.13"],"introduced":["0"],"last_affected":[],"package":"akaunting/akaunting","purl":null,"source":"GHSA-246r-r2wf-frhx"},{"ecosystem":"Packagist","fixed":["2.1.13"],"introduced":["0"],"last_affected":[],"package":"akaunting/akaunting","purl":"pkg:composer/akaunting/akaunting","source":"GHSA-246r-r2wf-frhx"}],"prev":{"headline":"Akaunting Avatar Persistent XSS","id":"CVE-2021-36803"},"products":["Akaunting"],"published":"2021-08-04","related":[{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2024-22836","kev_date_added":null,"published":"2024-02-08"},{"cvss_score":8.8,"headline":"Code injection in n/a","id":"CVE-2020-22390","kev_date_added":null,"published":"2021-06-21"},{"cvss_score":8.7,"headline":"Akaunting OS Command Injection in 'Money.php'","id":"CVE-2021-36800","kev_date_added":null,"published":"2021-08-04"},{"cvss_score":8.1,"headline":"Akaunting Authentication Bypass in Company Selection","id":"CVE-2021-36801","kev_date_added":null,"published":"2021-08-04"},{"cvss_score":6.5,"headline":"Denial of service in n/a","id":"CVE-2025-55521","kev_date_added":null,"published":"2025-08-21"},{"cvss_score":6.5,"headline":"Cross-site scripting in n/a","id":"CVE-2025-55522","kev_date_added":null,"published":"2025-08-21"},{"cvss_score":6.5,"headline":"Akaunting DoS via User-Controlled 'locale' Variable","id":"CVE-2021-36802","kev_date_added":null,"published":"2021-08-04"}],"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Akaunting"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2021-36804/"}