{"answers":{"affected":"2 open source packages ship an affected version, including yourls/yourls.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63135 exists.","fix":"Upgrade yourls/yourls to 1.10.4 or later.","what":"CVE-2026-63135 is a high-severity cross-site scripting vulnerability in YOURLS, published on 21 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-63135 and fix it if it is affected.\n\nWhat it is: CVE-2026-63135 is a high-severity cross-site scripting vulnerability in YOURLS, published on 21 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63135 exists.\n\nAffected packages and fixed versions:\n- yourls/yourls (Packagist): affected from 1.5.1; fixed in 1.10.4\n- yourls/yourls (Packagist): affected from 1.5.1; fixed in 1.10.4\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-63135/ (Markdown: https://insights.sbomify.com/CVE-2026-63135/index.md)","id":"CVE-2026-63135","markdown":"https://insights.sbomify.com/CVE-2026-63135/index.md","name":"CVE-2026-63135","record":{"aliases":["GHSA-5h77-88j3-r659"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"URL shortener","requires_auth":"none","summary":"An attacker can inject malicious JavaScript into YOURLS statistics via a crafted Referer header, leading to code execution and data theft when viewed by admins.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"YOURLS is a self-hosted, customizable URL shortener written in PHP. From 1.5.1 until 1.10.4, YOURLS stores the HTTP Referer header through yourls_get_referrer(), yourls_sanitize_url_safe(), and yourls_log_redirect(), then aggregates the value in yourls-infos.php and passes the derived domain through yourls_get_domain(), yourls_stats_pie(), and yourls_google_array_to_data_table(). The chart builder concatenates labels into inline JavaScript without JavaScript-string escaping, so an unauthenticated attacker can poison the statistics of an existing short URL with a crafted referrer. When an administrator or public stats-page viewer opens the affected statistics page, attacker-controlled JavaScript executes in the YOURLS origin and can access admin-visible data, the API signature token, and privileged same-origin actions. This issue is fixed in version 1.10.4.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"YOURLS: Stored XSS in referrer statistics chart via crafted Referer header","id":"CVE-2026-63135","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Uncontrolled Resource Consumption in Elasticsearch Leading to Denial of Service","id":"CVE-2026-63136"},"packages":[{"ecosystem":"Packagist","fixed":["1.10.4"],"introduced":["1.5.1"],"last_affected":[],"package":"yourls/yourls","purl":null,"source":"GHSA-5h77-88j3-r659"},{"ecosystem":"Packagist","fixed":["1.10.4"],"introduced":["1.5.1"],"last_affected":[],"package":"yourls/yourls","purl":"pkg:composer/yourls/yourls","source":"GHSA-5h77-88j3-r659"}],"prev":{"headline":"Malcolm's Path Traversal in Archive Extraction Allows Arbitrary Directory Creation","id":"CVE-2026-63134"},"products":["YOURLS"],"published":"2026-08-21","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-08-26","vendors":["YOURLS"]},"summary":"An attacker can inject malicious JavaScript into YOURLS statistics via a crafted Referer header, leading to code execution and data theft when viewed by admins.","url":"https://insights.sbomify.com/CVE-2026-63135/"}