Skip to content

bailian-cli-runtime bundles outdated fast-uri #345

Backlog

Description

@taxor03

Hi, bailian-cli-runtime@2.11.2 (current latest) ships a single bundle, dist/index.mjs, that inlines ajv 8.20.0 together with fast-uri 3.1.2. The published package.json lists this under inlinedDependencies ("fast-uri": "3.1.2"), and pnpm-lock.yaml on main resolves fast-uri@3.1.2.

fast-uri 3.1.2 is covered by 11 published advisories (list below); all are fixed in 3.1.9. ajv and fast-uri are inlined rather than declared as dependencies, so npm audit and SCA tools cannot see this copy, for you or for users of the CLI. We did not find an exploit path through the CLI, but the bundled copy is covered by these advisories and no audit will flag it.

Suggested fix: update fast-uri in pnpm-lock.yaml to 3.1.9 or later (ajv 8.20.0 accepts ^3.0.1), rebuild packages/runtime and publish.

Static reproduction (2026-11-25):

  1. npm pack bailian-cli-runtime@2.11.2 && tar xzf bailian-cli-runtime-2.11.2.tgz
  2. grep -o '"fast-uri": "[^"]*"' package/package.json → "fast-uri": "3.1.2"
  3. grep -c 'URI can not be parsed' package/dist/index.mjs → 1 (fast-uri is inlined)
  4. grep -c 'domainToASCII(' package/dist/index.mjs → 1 (host normalization replaced in fast-uri 3.1.3)
  5. grep -c 'URI host is malformed' package/dist/index.mjs → 0 (check added in fast-uri 3.1.6)
Advisories

fast-uri 3.1.2:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions