{"answers":{"affected":"4 open source packages ship an affected version, including github.com/temporalio/ui-server/v2 and github.com/temporalio/ui-server.","exploited":"There is no known exploitation of CVE-2024-2435 in the wild and no public exploit code.","fix":"Upgrade github.com/temporalio/ui-server/v2 to 2.25.0 or later.","what":"CVE-2024-2435 is a medium-severity cross-site scripting vulnerability in Temporal OSS ui-server, published on 2 Apr 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-2435 and fix it if it is affected.\n\nWhat it is: CVE-2024-2435 is a medium-severity cross-site scripting vulnerability in Temporal OSS ui-server, published on 2 Apr 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-2435 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/temporalio/ui-server/v2 (Go): affected all versions; fixed in 2.25.0\n- github.com/temporalio/ui-server/v2 (Go): affected all versions; fixed in 2.25.0\n- github.com/temporalio/ui-server/v2 (Go): affected all versions; fixed in 2.25.0\n- github.com/temporalio/ui-server (Go): affected all versions; 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-2024-2435/ (Markdown: https://insights.sbomify.com/CVE-2024-2435/index.md)","id":"CVE-2024-2435","markdown":"https://insights.sbomify.com/CVE-2024-2435/index.md","name":"CVE-2024-2435","record":{"aliases":["GHSA-8f25-w7qj-r7hc","GO-2024-2675"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Temporal UI server","requires_auth":"high_privilege","summary":"An attacker with signal-sending permissions can inject scripts into workflow signal names, leading to stored XSS when victims view the timeline.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Temporal","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"For an attacker with pre-existing access to send a signal to a workflow, the attacker can make the signal name a script that executes when a victim views that signal. The XSS is in the timeline page displaying the workflow execution details of the workflow that was sent the crafted signal.\nAccess to send a signal to a workflow is determined by how you configured the authorizer on your server. This includes any entity with permission to directly call SignalWorkflowExecution or SignalWithStartWorkflowExecution, or any entity can deploy a worker that has access to call workflow progress APIs (specifically RespondWorkflowTaskCompleted).","ecosystems":["Go"],"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":"Stored XSS in Timeline View","id":"CVE-2024-2435","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":4,"n_references":1,"next":{"headline":"Lightweight Accordion \u003c= 1.5.16 - Authenticated(Contributor+) Stored Cross-Site Scripting via Shortcode","id":"CVE-2024-2436"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/temporalio/ui-server","purl":"pkg:golang/github.com/temporalio/ui-server","source":"GO-2024-2675"},{"ecosystem":"Go","fixed":["2.25.0"],"introduced":["0"],"last_affected":[],"package":"github.com/temporalio/ui-server/v2","purl":null,"source":"GHSA-8f25-w7qj-r7hc"},{"ecosystem":"Go","fixed":["2.25.0"],"introduced":["0"],"last_affected":[],"package":"github.com/temporalio/ui-server/v2","purl":"pkg:golang/github.com/temporalio/ui-server/v2","source":"GHSA-8f25-w7qj-r7hc"},{"ecosystem":"Go","fixed":["2.25.0"],"introduced":["0"],"last_affected":[],"package":"github.com/temporalio/ui-server/v2","purl":"pkg:golang/github.com/temporalio/ui-server/v2","source":"GO-2024-2675"}],"prev":{"headline":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab","id":"CVE-2024-2434"},"products":["ui-server"],"published":"2024-04-02","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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["Temporal OSS"]},"summary":"An attacker with signal-sending permissions can inject scripts into workflow signal names, leading to stored XSS when victims view the timeline.","url":"https://insights.sbomify.com/CVE-2024-2435/"}