Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@hcaptcha/react-hcaptcha
Advanced tools
hCaptcha Component Library for ReactJS.
hCaptcha is an easy to use replacement for reCaptcha that helps monetize your website.
Sign up at hCaptcha to get your sitekey today. You need a sitekey to use this captcha solution.
You can install this library via npm with:
npm install react-hcaptcha --save
<your-cool-form>
<hCaptcha :sitekey="**Your sitekey here**" onVerify={this.onVerifyCaptcha}></hCaptcha>
</your-cool-form>
The two required props are the sitekey and root component. The component will automatically include and load the hCaptcha API library and append it to the root component. This is designed for ease of use with the hCaptcha API!
Props include:
The component emits any events related to verification, and expiring. Simply catch these events in the parent component
ie: onVerify
, onExpire
, onError
and handle the events as you choose. The captcha will automatically reset on error, but still emit an error.
Please refer to the demo for examples of basic usage and an invisible Captcha.
FAQs
A React library for hCaptcha
The npm package @hcaptcha/react-hcaptcha receives a total of 65,275 weekly downloads. As such, @hcaptcha/react-hcaptcha popularity was classified as popular.
We found that @hcaptcha/react-hcaptcha demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.