{"id":"CVE-2026-27612","published":"2026-02-25T02:38:05Z","modified":"2026-11-03T22:13:22Z","title":"Repostat Vulnerable to Reflected Cross-Site Scripting (XSS) via repo prop in RepoCard","vendor":"denpiligrim","product":"repostat","tier":"tail","description":{"text":"Repostat is a React component to fetch and display GitHub repository info. Prior to version 1.0.1, the `RepoCard` component is vulnerable to Reflected Cross-Site Scripting (XSS). The vulnerability occurs because the component uses React's `dangerouslySetInnerHTML` to render the repository name (`repo` prop) during the loading state without any sanitization. If a developer using this package passes unvalidated user input directly into the `repo` prop (for example, reading it from a URL query parameter), an attacker can execute arbitrary JavaScript in the context of the user's browser. In version 1.0.1, the use of dangerouslySetInnerHTML has been removed, and the repo prop is now safely rendered using standard React JSX data binding, which automatically escapes HTML entities.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00239,"percentile":0.15081,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/denpiligrim/repostat/security/advisories/GHSA-fm8c-6m29-rp6j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denpiligrim/repostat/commit/715df5f73359d222fd7876e948d14290180e3c88","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":3.02},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"denpiligrim","affectedVersions":[{"vendor":"denpiligrim","product":"repostat","versions":["< 1.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-26T21:19:51.932568Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"repostat","vulnerableRanges":["<1.0.1"],"patched":["1.0.1"],"from":["GHSA-fm8c-6m29-rp6j"],"provenance":"source"}],"summary":{"text":"The RepoCard component in the repostat React package (denpiligrim) renders its repo prop through dangerouslySetInnerHTML without sanitization while in the loading state, a flaw present before version 1.0.1. An attacker can run arbitrary JavaScript in a victim's browser when a developer passes unvalidated input, such as a URL query parameter, into that prop and the victim is induced to follow a crafted link, requiring no privileges but user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:55Z"},"euvd":{"id":"EUVD-2026-8599","exploited":false,"provenance":"source"}}