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

@weapp-vite/qr

Latest version: v1.2.8-dev.20261128.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: icebreaker
528 Stars
33 Forks
38 Versions
41.4K Downloads
TypeScript Repo language

Scan summary

@weapp-vite/qr was last scanned on 28 Nov 2026 at version 1.2.8-dev.20261128.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 38 versions; the latest 5 were published within 7 days (22–28 Nov 2026).
  • Findings: No rules fired in version 1.2.8-dev.20261128.1.
  • Downloads: 41,368 downloads.

Versions

38 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.2.8-dev.20261128.1 LATEST 28 Nov 2026 No rules fired
1.2.7 25 Nov 2026 No rules fired
1.2.7-dev.20261124.1 24 Nov 2026 No rules fired
1.2.6-dev.20261123.1 23 Nov 2026 Not shown
1.2.6 22 Nov 2026 Not shown

No rules fired in 1.2.8-dev.20261128.1

Findings

Findings for v1.2.8-dev.20261128.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 1.2.8-dev.20261128.1; other versions have their own rules, not their own score.

README

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

@weapp-vite/qr

@weapp-vite/qr 提供二维码矩阵编码、图片解码、reader 适配、微信小程序码结构识别与终端文本渲染能力。

import { decodeQrCodeFromBase64, renderTerminalQrCode } from '@weapp-vite/qr'

const content = await decodeQrCodeFromBase64(base64Png)
process.stdout.write(renderTerminalQrCode(content, { small: true }))

API

编码
import { createQrCodeMatrix } from '@weapp-vite/qr'

const matrix = createQrCodeMatrix('https://vite.weapp.dev/')
解码
import {
  decodeQrCodeFromBase64,
  decodeQrCodeFromBuffer,
  decodeQrCodeFromFile,
} from '@weapp-vite/qr'

const fromBase64 = await decodeQrCodeFromBase64(base64Png)
const fromBuffer = await decodeQrCodeFromBuffer(imageBuffer)
const fromFile = await decodeQrCodeFromFile('./fixtures/qr.png')
Reader 输入
import { decodeWithQrReader } from '@weapp-vite/qr'
import sharp from 'sharp'

const { data, info } = await sharp(imageBuffer)
  .ensureAlpha()
  .raw()
  .toBuffer({ resolveWithObject: true })

const result = await decodeWithQrReader({
  width: info.width,
  height: info.height,
  data,
})

console.log(result.result)
小程序码结构识别
import { detectMiniProgramCodeFromFile } from '@weapp-vite/qr'

const detected = await detectMiniProgramCodeFromFile('./fixtures/mini-program-code.jpg')

if (detected) {
  console.log(detected.kind)
  console.log(detected.locatorPoints)
  console.log(detected.badgeBounds)
  console.log(detected.logoBounds)
}

这里的结构识别目标是判断图片是否符合微信小程序码几何特征,并返回定位点、中心 logo 区和右下角徽标区域。 它不是把小程序码直接解码成链接或页面路径。

高层类型检测
import { detectCodeTypeFromFile } from '@weapp-vite/qr'

const codeType = await detectCodeTypeFromFile('./fixtures/code.png')

if (codeType === 'qr') {
  console.log('standard qr')
}
else if (codeType === 'mini-program-code') {
  console.log('wechat mini program code')
}
else {
  console.log('unknown')
}
终端渲染
import {
  createQrCodeMatrix,
  renderTerminalQrCode,
  renderTerminalQrCodeFromMatrix,
} from '@weapp-vite/qr'

const compact = renderTerminalQrCode('weapp-vite', { small: true })

const matrix = createQrCodeMatrix('weapp-vite')
const rendered = renderTerminalQrCodeFromMatrix(matrix)

导出类型

import type {
  MiniProgramCodeDetectionResult,
  QRCodeMatrix,
  QRCodeReaderInput,
  QRCodeReaderResult,
  QRCodeRenderOptions,
  QRCodeType,
} from '@weapp-vite/qr'

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 @weapp-vite/qr

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229