Skip to content

[High] Published npm entrypoint is a hand-built webpack bundle committed to the repo with no reproducible build, no CI, no prepublish step #31

Closed
0 of 1 issue completed

Description

@primeobsession

What's wrong

main=build/index.js. No .github/. No prepare/prepublishOnly. test is echo-fail. webpack has no mode/devtool. lockfile root version 2.1.0 vs package.json 2.4.1. npm 2.4.2 gitHead is this commit (version bump not even committed). No tampering found in the bundle.

Impact

A maintainer-account or build/index.js commit ships arbitrary JS to every consumer. Review of src/ does not prove what npm executes.

Where

opengraph-react + package.json:5-10, build/index.js, webpack.config.js

Blame: BlArcher3127 106981675+BlArcher3127@users.noreply.github.com c15834a21d352972e0c6dc35b8a2988e114bceb3

Fix

Stop committing build/. CI + npm publish --provenance. prepublishOnly=build+test. Pin webpack mode. Regen lockfile.

Catalog

  • ARAD: ARAD-OGR-011
  • CWE: CWE-494
  • CVSS: 8.0 CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Section: Supply chain
  • Ref: package.json:5 (master)
  • Verification: verified

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    security
    arad
    on Sep 16, 2026
  2. cwooley commented on Oct 7, 2026

    @cwooley
    Member

    Fixed in 4f9e985 (merged to master in #44).

    build/ is no longer tracked. The files field is just build, so publish still ships the bundle, produced by prepublishOnly (production webpack, then tests). .GITIGNORE was renamed to .gitignore. CI runs npm ci, test, and build, and npm publish --provenance when a v* tag matches package.json.

    Still to do: set NPM_TOKEN, tag v2.5.0, then bump opengraph-react in apifur-ui and og-next-ui.

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

    aradsecurityseverity:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions