Skip to main content
← All vulnerabilities
CVE-2026-27612GHSA-FM8C-6M29-RP6J

Repostat Vulnerable to Reflected Cross-Site Scripting (XSS) via repo prop in RepoCard

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • denpiligrim repostat

    fixed in 1.0.1

  • repostatnpm

    fixed in 1.0.1

References 2

GitHub · denpiligrim/repostat