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-core/shared

Latest version: v3.5.4-dev.20261128.1

Overview

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

Scan summary

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

  • Releases: 43 versions; the latest 5 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 3.5.4-dev.20261128.1.
  • Downloads: 42,666 downloads.

Versions

43 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.5.4-dev.20261128.1 LATEST 28 Nov 2026 No rules fired
3.5.4-dev.20261127.1 27 Nov 2026 No rules fired
3.5.3 25 Nov 2026 No rules fired
3.5.3-dev.20261124.1 24 Nov 2026 Not shown
3.5.2-dev.20261123.1 23 Nov 2026 Not shown

No rules fired in 3.5.4-dev.20261128.1

Findings

Findings for v3.5.4-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 3.5.4-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-core/shared

简介

@weapp-core/shared 汇总 weapp-vite 生态内的通用工具函数与依赖封装,供多个包复用。 根入口默认保持小程序运行时安全;Node 专用能力通过独立子入口导出。

特性

  • 常用字符串与路径处理工具
  • 对象合并与判定工具
  • 统一导出常用第三方工具(defu、get、set)
  • 通过 @weapp-core/shared/node 提供 Node 专用哈希与文件系统能力
  • 通过独立、浏览器安全的 @weapp-core/shared/rich-text 子入口提供富文本安全树规范化,根入口不加载 HTML 解析器

安装

pnpm add @weapp-core/shared

使用

import {
  addExtension,
  defu,
  escapeStringRegexp,
  removeExtension,
} from '@weapp-core/shared'
import { fs, objectHash } from '@weapp-core/shared/node'

const name = addExtension('pages/index/index')
const cleaned = removeExtension('app.json')
const hash = objectHash({ foo: 'bar' })
const exists = await fs.pathExists('app.json')
富文本安全树
import { normalizeRichTextNodes } from '@weapp-core/shared/rich-text'

const nodes = normalizeRichTextNodes('<p>Hello <strong>world</strong></p>')

该子入口接受 HTML 字符串或结构化节点,返回命名的 SafeRichTextNode 文本/元素联合类型。normalizeRichTextNodes 保留 Web 的安全规范化策略;normalizeNativeRichTextNodes 和 sanitizeNativeRichTextAttributes 使用微信原生富文本规则:未知元素及子树被移除,数组文本实体仅解码一次,属性仅保留官方逐标签允许项及安全 class/style,不保留 id、href、事件或 data-sim-*。两个策略共用节点类型、HTML 解析器和安全样式检查,但具有独立的规范化函数,Web bundle 无需保留原生策略及其额外解码逻辑。输出均为惰性内容树,不执行脚本或模板。

配置

暂无额外配置。

相关链接

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-core/shared

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

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?

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?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229