{"id":"CVE-2024-3166","published":"2024-06-06T18:23:36Z","modified":"2024-08-01T20:05:07Z","title":"Cross-Site Scripting (XSS) Vulnerability in mintplex-labs/anything-llm","vendor":"mintplex-labs","product":"mintplex-labs/anything-llm","tier":"tail","description":{"text":"A Cross-Site Scripting (XSS) vulnerability exists in mintplex-labs/anything-llm, affecting both the desktop application version 1.2.0 and the latest version of the web application. The vulnerability arises from the application's feature to fetch and embed content from websites into workspaces, which can be exploited to execute arbitrary JavaScript code. In the desktop application, this flaw can be escalated to Remote Code Execution (RCE) due to insecure application settings, specifically the enabling of 'nodeIntegration' and the disabling of 'contextIsolation' in Electron's webPreferences. The issue has been addressed in version 1.4.2 of the desktop application.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.4,"severity":"LOW","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00962,"percentile":0.62473,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://huntr.com/bounties/af288bd3-8824-4216-a294-ae9fb444e5db","tags":[]},{"url":"https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","tags":[]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":12.49},{"name":"CVSS severity","points":2.38}]},"vendorSlug":"mintplex-labs","affectedVersions":[{"vendor":"mintplex-labs","product":"mintplex-labs/anything-llm","versions":[">= unspecified, < 1.4.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-07T17:05:06.902805Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-31763","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mintplex-labs-anything-llm-cve-2023-4898","parents":[{"from":"CVE-2023-4898","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/endpoints/admin.js","server/endpoints/api/admin/index.js","server/models/invite.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/dc3dfbf31495fe316b21ee184b9317b38101d30e","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["adminEndpoints","apiAdminEndpoints"]}]},{"from":"CVE-2023-4899","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/endpoints/admin.js","server/endpoints/api/admin/index.js","server/models/invite.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/dc3dfbf31495fe316b21ee184b9317b38101d30e","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["adminEndpoints","apiAdminEndpoints"]}]},{"from":"CVE-2024-0436","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["frontend/src/components/Modals/Password/index.jsx","frontend/src/pages/Login/index.jsx","server/utils/middleware/validatedRequest.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/3c859ba3038121b67fb98e87dc52617fa27cbef0","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["PasswordModal","validatedRequest"]}]},{"from":"CVE-2024-0439","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/utils/http/index.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/7200a06ef07d92eef5f3c4c8be29824aa001d688","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"rarely changed file"}]},{"from":"CVE-2024-0795","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/endpoints/admin.js","server/endpoints/api/admin/index.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/9a237db3d1f66cdbcf5079599258f5fb251c5564","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["adminEndpoints","apiAdminEndpoints"]}]},{"from":"CVE-2024-3025","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/utils/files/logo.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/7de23dbb2da932fbfb39f56d981784d3702cf5ce","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["determineLogoFilepath","renameLogoFile"]}]},{"from":"CVE-2024-3101","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/models/telemetry.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/52fac844221a9b951d08ceb93c4c014e9397b1f2","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"rarely changed file"}]},{"from":"CVE-2024-3283","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/models/telemetry.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/52fac844221a9b951d08ceb93c4c014e9397b1f2"],"basis":"rarely changed file"}]},{"from":"CVE-2024-3569","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["frontend/src/components/Modals/Password/index.jsx","frontend/src/components/PrivateRoute/index.jsx","frontend/src/pages/Login/index.jsx","frontend/src/utils/paths.js","server/utils/middleware/validatedRequest.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/efe9dfa5e3550d12abd34d06ab7f8fbcf2206cfa"],"basis":"shared function","functions":["PasswordModal","PrivateRoute","usePasswordModal","validatedRequest"]}]},{"from":"CVE-2024-3028","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/utils/files/logo.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/7de23dbb2da932fbfb39f56d981784d3702cf5ce","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["determineLogoFilepath","renameLogoFile"]}]},{"from":"CVE-2024-4287","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["frontend/src/components/LLMSelection/LMStudioOptions/index.jsx","server/prisma/schema.prisma","server/utils/helpers/updateENV.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/94b58249a37a21b1c08deaa2d1edfdecbb6deb18"],"basis":"shared function","functions":["LMStudioOptions"]}]},{"from":"CVE-2024-3104","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/utils/helpers/updateENV.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/bfedfebfab032e6f4d5a369c8a2f947c5d0c5286","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["dumpENV"]}]},{"from":"CVE-2024-3110","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/utils/http/index.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/49f30e051c9f6e28977d57d0e5f49c1294094e41","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["safeJsonParse"]}]},{"from":"CVE-2024-3149","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":[".vscode/settings.json","collector/extensions/index.js","collector/index.js","collector/middleware/verifyIntegrity.js","collector/processSingleFile/index.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/f4088d9348fa86dcebe9f97a18d39c0a6e92f15e","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["CollectorApi","extensions","wipeCollectorStorage"]}]},{"from":"CVE-2024-3150","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/models/workspaceThread.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/200bd7f0615347ed2efc07903d510e5a208b0afc","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"rarely changed file"}]},{"from":"CVE-2024-3152","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/models/workspaceThread.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/200bd7f0615347ed2efc07903d510e5a208b0afc","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"rarely changed file"}]},{"from":"CVE-2024-3153","to":"CVE-2024-3166","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/endpoints/api/document/index.js","server/utils/files/multer.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/b8d37d9f43af2facab4c51146a46229a58cb53d9","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["apiDocumentEndpoints"]}]}],"children":[{"from":"CVE-2024-3166","to":"CVE-2024-10513","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/endpoints/api/document/index.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/47a5c7126c20e2277ee56e2c7ee11990886a40a7","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"shared function","functions":["apiDocumentEndpoints"]}]},{"from":"CVE-2024-3166","to":"CVE-2024-13059","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/utils/files/multer.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/0b7bf68f2c02ca68075970fbf85d5a70ca5e94ca","https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce"],"basis":"rarely changed file"}]},{"from":"CVE-2024-3166","to":"CVE-2024-5211","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["collector/utils/files/index.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/e208074ef4c240fe03e4147ab097ec3b52b97619"],"basis":"rarely changed file"}]},{"from":"CVE-2024-3166","to":"CVE-2024-5213","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/endpoints/admin.js","server/endpoints/api/admin/index.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/9df4521113ddb9a3adb5d0e3941e7d494992629c"],"basis":"shared function","functions":["adminEndpoints","apiAdminEndpoints"]}]},{"from":"CVE-2024-3166","to":"CVE-2024-6842","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":[".vscode/settings.json","docker/.env.example","server/.env.example","server/utils/helpers/updateENV.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/8b1ceb30c159cf3a10efa16275bc6849d84e4ea8"],"basis":"rarely changed file"}]},{"from":"CVE-2024-3166","to":"CVE-2024-7783","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/utils/middleware/validatedRequest.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/4430ddb05988470bc8f0479e7d07db1f7d4646ba"],"basis":"shared function","functions":["validatedRequest"]}]},{"from":"CVE-2024-3166","to":"CVE-2024-8196","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["collector/index.js","server/index.js","server/utils/helpers/updateENV.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/9bfe477f10b188bfe3508ac29105df80d4522ece"],"basis":"shared function","functions":["dumpENV"]}]},{"from":"CVE-2024-3166","to":"CVE-2024-8248","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/endpoints/api/document/index.js"],"commits":["https://github.com/mintplex-labs/anything-llm/commit/fa27103d032c58904c49b92ee13fabc19a20a5ce","https://github.com/mintplex-labs/anything-llm/commit/47a5c7126c20e2277ee56e2c7ee11990886a40a7"],"basis":"shared function","functions":["apiDocumentEndpoints"]}]}]}}