{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-2290 exists.","fix":"No fix has been published for CVE-2022-2290 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-2290 is a medium-severity cross-site scripting vulnerability in zadam/trilium, published on 3 Jul 2022. 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-2022-2290 and fix it if it is affected.\n\nWhat it is: CVE-2022-2290 is a medium-severity cross-site scripting vulnerability in zadam/trilium, published on 3 Jul 2022. 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-2022-2290 exists.\n\nAffected product: zadam/trilium. 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-2022-2290/ (Markdown: https://insights.sbomify.com/CVE-2022-2290/index.md)","id":"CVE-2022-2290","markdown":"https://insights.sbomify.com/CVE-2022-2290/index.md","name":"CVE-2022-2290","record":{"aliases":["GHSA-4fjp-3mcp-2938"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Trilium Notes","requires_auth":"none","summary":"Reflected Cross-Site Scripting in Trilium Notes allows attackers to execute arbitrary scripts in the context of the application.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"trilium","vendor":"triliumnotes"}],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Cross-site Scripting (XSS) - Reflected in GitHub repository zadam/trilium prior to 0.52.4, 0.53.1-beta.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2022/CVE-2022-2290.yaml","stars":null,"title":"Trilium \u003c0.52.4 - Cross-Site Scripting"}],"tier":"weaponised"},"has_fix":false,"headline":"Cross-site Scripting (XSS) - Reflected in zadam/trilium","id":"CVE-2022-2290","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2022"},"n_packages":0,"n_references":2,"next":{"headline":"SourceCodester Hotel Management System Search search cross site scripting","id":"CVE-2022-2291"},"packages":[],"prev":{"headline":"Use After Free in vim/vim","id":"CVE-2022-2289"},"products":["zadam/trilium"],"published":"2022-07-03","related":[{"cvss_score":9.3,"headline":"Trilium: Malicious import with GeoMap marker title XSS leads to RCE on the desktop client","id":"CVE-2026-48996","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":9.3,"headline":"Trilium: Note Import to RCE via Mind Elixir dangerouslySetInnerHtml","id":"CVE-2026-53578","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":9.3,"headline":"Trilium: Note Import to RCE via Book Note","id":"CVE-2026-53579","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":8.6,"headline":"Code injection in Trilium","id":"CVE-2026-47727","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":8.1,"headline":"Trilium arbitrary file read and denial of service via file:// URLs in the automatic image-download feature","id":"CVE-2026-53580","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":7.5,"headline":"Trilium unauthenticated share-search discloses password-protected and hidden shared notes","id":"CVE-2026-77438","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":7.4,"headline":"Trilium Notes has a Timing Attack Vulnerability in /api/login/sync","id":"CVE-2025-68621","kev_date_added":null,"published":"2026-02-06"}],"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["zadam"]},"summary":"Reflected Cross-Site Scripting in Trilium Notes allows attackers to execute arbitrary scripts in the context of the application.","url":"https://insights.sbomify.com/CVE-2022-2290/"}