Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@input-kit/otp

Latest version: v0.2.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: malicious-dev
1 Versions
21 Downloads

Scan summary

@input-kit/otp was last scanned on 27 Nov 2026 at version 0.2.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 27 Nov 2026.
  • Findings: No rules fired in version 0.2.1.
  • Downloads: 21 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.1 LATEST 27 Nov 2026 No rules fired

No rules fired in 0.2.1

Findings

Findings for v0.2.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@input-kit/otp

Accessible OTP and verification-code inputs for React with paste support, keyboard navigation, masking, separators, and a headless hook for custom layouts.

Installation

npm install @input-kit/otp

Quick Start

import { OtpInput } from '@input-kit/otp';

function VerifyForm() {
    return (
        <OtpInput
            length={6}
            onChange={(value) => console.log(value)}
            onComplete={(value) => console.log('Complete:', value)}
        />
    );
}

Exports

useOtpInput(options)

Hook for building custom OTP interfaces.

Options:

Option Type Default Description
length number 6 Number of cells
initialValue string '' Initial code value
onChange (value: string) => void - Called on every update
onComplete (value: string) => void - Called when all cells are filled
type 'numeric' \| 'alphanumeric' \| 'alpha' 'numeric' Allowed characters
autoFocus boolean false Focus the first cell on mount

Returned API:

  • value: array of cell values
  • setValue(value): set the full OTP string
  • focusedIndex: active cell index
  • setFocusedIndex(index): move focus programmatically
  • handleChange(index, char): apply one character
  • handleKeyDown(index, event): handle navigation and deletion
  • handlePaste(event): distribute pasted values across cells
  • handleFocus(index): sync focused index
  • inputRefs: refs for individual inputs
  • isComplete: true when all cells are filled
  • clear(): reset the code
OtpInput

Default boxed OTP input component.

Props:

Prop Type Default Description
length number 6 Number of cells
value string - Controlled value
onChange (value: string) => void - Change callback
onComplete (value: string) => void - Completion callback
type 'numeric' \| 'alphanumeric' \| 'alpha' 'numeric' Allowed characters
autoFocus boolean false Focus first cell on mount
disabled boolean false Disable all inputs
masked boolean false Hide characters with password inputs
separator ReactNode - Element inserted after selected indices
separatorAfter number[] [] Indices after which separators render
inputClassName string - Class applied to each cell
inputStyle React.CSSProperties - Inline styles for each cell
className string - Wrapper class
style React.CSSProperties - Wrapper style
placeholder string '-' Placeholder for empty cells
aria-label string 'OTP input' Group label
OtpInputUnderline

Underline-styled variant.

OtpInputCircle

Circular input variant.

Notes

  • type="numeric" uses inputMode="numeric" for better mobile keyboards.
  • Alphabetic and alphanumeric inputs are normalized to uppercase.
  • Pasting a valid code distributes characters automatically across the fields.

License

MIT © Input Kit

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @input-kit/otp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229