Vulnerabilities/

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

Severity:
Medium

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:

References

Related Issues

Tags:
npm
repostat
Anything's wrong? Let us know Last updated on February 25, 2026