{"cve":"CVE-2026-27612","nvd":{"published":"2026-02-25T03:16:05.627","modified":"2026-06-17T10:27:23.673","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/denpiligrim/repostat/commit/715df5f73359d222fd7876e948d14290180e3c88","https://github.com/denpiligrim/repostat/security/advisories/GHSA-fm8c-6m29-rp6j"],"products":["denpiligrim:repostat"],"source":"nvd","synced_at":"2026-10-19T22:24:17.937441719+00:00"},"epss":{"cve":"CVE-2026-27612","score":0.00234,"percentile":0.14296,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-fm8c-6m29-rp6j","url":"https://osv.dev/vulnerability/GHSA-fm8c-6m29-rp6j","summary":"repostat: Reflected Cross-Site Scripting (XSS) via repo prop in RepoCard","modified":"2026-02-25T16:26:21.121272Z","packages":[{"ecosystem":"npm","name":"repostat","purl":"pkg:npm/repostat","ranges":["<1.0.1"],"fixed":["1.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}