Vulnerability library
Security checkFebruary 25, 2026

repostat: Reflected Cross-Site Scripting (XSS) via repo prop in RepoCard

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmrepostat

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the repostat package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.0.1
  • Patched version(s): 1.0.1

References

Could your website be exposed too?

SmartScanner can check your website for repostat: Reflected Cross-Site Scripting (XSS) via repo prop in RepoCard and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 25, 2026