Skip to content

fix(deps): pin nanoid >= 3.3.18 in archives/serenity (GHSA-2v37-7h3g-55p8, Dependabot #37) - #196

Merged
Stab-Rabbit-coding merged 2 commits into
mainfrom
fix/dependabot-nanoid-ghsa-2v37
Aug 31, 2026
Merged

fix(deps): pin nanoid >= 3.3.18 in archives/serenity (GHSA-2v37-7h3g-55p8, Dependabot #37)#196
Stab-Rabbit-coding merged 2 commits into
mainfrom
fix/dependabot-nanoid-ghsa-2v37

Conversation

@Stab-Rabbit-coding

Copy link
Copy Markdown
Owner

Closes the repository's one open Dependabot alert — #37, high severity.

The vulnerability

GHSA-2v37-7h3g-55p8nanoid before 3.3.18 can loop indefinitely when a custom generator is invoked with size zero.

Package nanoid (npm)
Manifest archives/serenity/package-lock.json
Installed 3.3.17
Vulnerable range < 3.3.18
First patched 3.3.18

It is transitive, not directpostcss@8.5.25 asks for nanoid: ^3.3.16, so nothing in the dependency list names it and it cannot be fixed by editing dependencies.

The fix

archives/serenity/package.json already carries an overrides block with ten transitive pins (nth-check, postcss, serialize-javascript, js-yaml, uuid, underscore, @tootallnate/once, http-proxy-middleware, svgo, webpack-dev-server). This is an eleventh, in the same place and the same form:

"nanoid": "^3.3.18"

postcss itself is untouched — it is already overridden to a current version and is not the vulnerable package.

Lockfile regenerated with npm install --package-lock-only. npm audit --audit-level=high now reports 0 vulnerabilities.

Two notes for the reviewer

The nanoid entry lost its "license": "MIT" line. That is an artifact of npm 9.2.0, which does not write that field — not a licensing change, and nanoid is still MIT. The lockfile is already mixed on this point: only 90 of 1,328 package entries carry it, written by a newer npm. No other content changed; the diff is 3 insertions / 4 deletions across both files.

archives/serenity/ is an archived front-end prototype, not flight or ground software, so practical exposure is low. It is still on the default branch and still scanned, so it is still an open high alert — and the fix costs one line, so it is taken rather than argued about. If the archive is meant to be outside the scanning scope, that is a separate decision about where archived code lives; it is not a reason to leave a known-vulnerable pin in a tracked lockfile.

Scope

Branched from main, independent of PR #195 (Rev T1c airframe work), so the two can merge in either order. Touches only archives/serenity/; no airframe, avionics, tooling or specification file is affected.

Stab-Rabbit-coding and others added 2 commits August 30, 2026 20:23
…55p8)

Dependabot alert #37, high.  nanoid < 3.3.18 can loop indefinitely when a
custom generator is called with size zero.  The archived Create React App under
archives/serenity/ pulled in nanoid 3.3.17 transitively through postcss 8.5.25
(which asks for ^3.3.16), so the direct dependency list never named it.

Fixed the way this package.json already handles ten other transitive pins --
an `overrides` entry -- rather than by touching postcss, which is itself
already overridden to a current version and is not the vulnerable package.

    "nanoid": "^3.3.18"

Lockfile regenerated with `npm install --package-lock-only`; nanoid moves
3.3.17 -> 3.3.18.  `npm audit --audit-level=high` then reports 0
vulnerabilities.

Two notes for the reviewer:

- The regeneration dropped the `"license": "MIT"` metadata line from the nanoid
  entry, because npm 9.2.0 does not write that field.  It is a lockfile
  metadata artifact, not a licensing change -- nanoid is still MIT -- and the
  file is already mixed on this point (only 90 of 1,328 package entries carry
  the field, written by a newer npm).  No other content changed.
- archives/serenity/ is an ARCHIVED front-end prototype, not flight or ground
  software, so the practical exposure here is low.  It is still on the default
  branch and still scanned, so it is still an open high alert; the fix is cheap
  and correct, so it is taken rather than argued about.  If the archive is
  meant to be out of scope for scanning, that is a separate decision about
  where archived code lives -- not a reason to leave a known-vulnerable pin in
  a tracked lockfile.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Stab-Rabbit-coding
Stab-Rabbit-coding merged commit 81cfe34 into main Aug 31, 2026
15 checks passed
@Stab-Rabbit-coding
Stab-Rabbit-coding deleted the fix/dependabot-nanoid-ghsa-2v37 branch August 31, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant