Skip to content

← Public intelligence

npm package

opencc

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

3 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.5npmAmendedPublished

    OpenCC has an Out-of-bounds read when processing truncated UTF-8 input

    GHSA-7fqq-q52p-2jjg

    Affected
    • npm opencc < 1.2.0
    Fixed in
    1.2.0· Vendor fix available
    Issue
    OpenCC versions before 1.2.0 contain two CWE-125: Out-of-bounds Read issues caused by length validation failures in UTF-8 processing. When handling malformed or truncated UTF-8 input, OpenCC trusted derived length values without enforcing the invariant that processed length must not exceed the remaining input buffer. This could result in out-of-bounds reads during segmentation or conversion. Details Two independent code paths in OpenCC failed to enforce the invariant: matchedLength <= remainingLength Both paths assumed derived length values were valid and within input bounds, but did not validate that assumption against the remaining buffer. This created the following failure chain: invalid UTF-8 - incorrect derived length - incorrect pointer advance - remaining-length desynchronization - out-of-bounds read In MaxMatchSegmentation::Segment, this could desynchronize remaining-length tracking and cause out-of-bounds reads during prefix matching. In Conversion::Convert(const…

    Recommended action: Upgrade to 1.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. Low, CVSS 1.9npmAmendedPublished

    Open Chinese Convert has Out-of-bounds Write

    CVE-2025-15536 · GHSA-5pr6-crvp-2j9f

    Affected
    • npm opencc <= 1.1.9
    Fixed in
    1.2.0· Vendor fix available
    Issue
    A weakness has been identified in BYVoid OpenCC up to 1.1.9. This vulnerability affects the function opencc::MaxMatchSegmentation of the file src/MaxMatchSegmentation.cpp. This manipulation causes heap-based buffer overflow. The attack is restricted to local execution. The exploit has been made available to the public and could be used for attacks. Patch name: 345c9a50ab07018f1b4439776bad78a0d40778ec. To fix this issue, it is recommended to deploy a patch.

    Recommended action: Upgrade to 1.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 5.5npmAmendedPublished

    Open Chinese Convert subject to Denial of Service via Out-of-bounds Read

    CVE-2018-16982 · GHSA-9qh2-6fxg-9m4g

    Affected
    • npm opencc < 1.1.2
    Fixed in
    1.1.2· Vendor fix available
    Issue
    Open Chinese Convert (OpenCC) 1.0.5 allows attackers to cause a denial of service (segmentation fault) because BinaryDict::NewFromFile in BinaryDict.cpp may have out-of-bounds keyOffset and valueOffset values via a crafted .ocd file.

    Recommended action: Upgrade to 1.1.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →