---
id: CVE-2026-27612
title: Repostat is a React component to fetch and display GitHub repository info
summary: >-
  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'…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: denpiligrim
product: repostat
affected:
  - repostat < 1.0.1
patched:
  - repostat 1.0.1
published: '2026-02-25'
updated: '2026-11-03'
sourceUpdated: '2026-11-03T23:17:41.027'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-27612'
references:
  - url: >-
      https://github.com/denpiligrim/repostat/commit/715df5f73359d222fd7876e948d14290180e3c88
    label: security-advisories@github.com
  - url: >-
      https://github.com/denpiligrim/repostat/security/advisories/GHSA-fm8c-6m29-rp6j
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-02-26T21:19:51.932568Z'
epss: 0.00234
epssPercentile: 0.14318
ingestedAt: '2026-11-05T06:38:03.602Z'
---

## Overview

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.

## Affected

- `repostat < 1.0.1`

## Remediation

Upgrade past the affected range:

- `repostat 1.0.1`
