{"answers":{"affected":"2 open source packages ship an affected version, including @lobehub/lobehub.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42045 exists.","fix":"No fix has been published for CVE-2026-42045 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-42045 is a medium-severity vulnerability in lobehub, published on 12 May 2026."},"fix_prompt":"Check this codebase for CVE-2026-42045 and fix it if it is affected.\n\nWhat it is: CVE-2026-42045 is a medium-severity vulnerability in lobehub, published on 12 May 2026. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42045 exists.\n\nAffected packages and fixed versions:\n- @lobehub/lobehub (npm): affected all versions up to 2.1.26; no fix listed\n- @lobehub/lobehub (npm): affected all versions up to 2.1.26; no fix listed\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-2026-42045/ (Markdown: https://insights.sbomify.com/CVE-2026-42045/index.md)","id":"CVE-2026-42045","markdown":"https://insights.sbomify.com/CVE-2026-42045/index.md","name":"CVE-2026-42045","record":{"aliases":["GHSA-xq4x-622m-q8fq"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":6.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"LobeHub is a work-and-lifestyle space to find, build, and collaborate with agent teammates that grow with you. Prior to 2.1.48, when LobeChat processes custom tags in the Render process of src/features/Portal/Artifacts/Body/Renderer/index.tsx, if no type match is found, it will choose to call the default method, HTMLRenderer, for HTML rendering. If an attacker can induce the LLM to output content containing malicious tags, an XSS vulnerability can be created on the client side. Additionally, Lobechat's Electron main process exposes an IPC interface called runCommand, used to invoke system commands. This interface allows arbitrary command execution and does not filter the command parameter. Therefore, if an attacker can obtain a handle to window.parent.electronAPI via XSS and call the runCommand method of the IPC, the ipcMain process can execute arbitrary system commands with the current user's privileges. This vulnerability is fixed in 2.1.48.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"LobeHub: Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE)","id":"CVE-2026-42045","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"libcaca: Heap OOB write in canvas import functions caused by int overflow","id":"CVE-2026-42046"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.1.26"],"package":"@lobehub/lobehub","purl":null,"source":"GHSA-xq4x-622m-q8fq"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.1.26"],"package":"@lobehub/lobehub","purl":"pkg:npm/%40lobehub/lobehub","source":"GHSA-xq4x-622m-q8fq"}],"prev":{"headline":"Axios: Invisible JSON Response Tampering via Prototype Pollution Gadget in `parseReviver`","id":"CVE-2026-42044"},"products":["lobehub"],"published":"2026-05-12","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-12","vendors":["lobehub"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-42045/"}