Skip to content

Security Wave 1bis - pin dot-prop and elliptic exact versions#123

Merged
dev-mansonthomas merged 1 commit into
masterfrom
security/wave-1bis-pin-permissive-ranges
May 15, 2026
Merged

Security Wave 1bis - pin dot-prop and elliptic exact versions#123
dev-mansonthomas merged 1 commit into
masterfrom
security/wave-1bis-pin-permissive-ranges

Conversation

@dev-mansonthomas
Copy link
Copy Markdown
Owner

Security Wave 1bis - pin permissive ranges

Side finding flagged during Wave 1 (#122). Two root-level entries in
package.json used the >= operator, which is broader than ^ and
authorizes any future major version. This PR pins them to their
currently installed versions.

Changes

Package Before After Installed
dot-prop ">=5.1.1" "9.0.0" 9.0.0 (unchanged)
elliptic ">=6.5.3" "6.6.1" 6.6.1 (unchanged)

Both entries are historical resolution overrides; neither is imported
from src/. The change is therefore a runtime no-op but removes a
degree of freedom from the install plan and from the supply-chain
attack surface.

Verification

  • ng build --configuration dev green.
  • ng test --watch=false --browsers=ChromeHeadless: 13/13 passing.
  • npm audit: 147 vulns, unchanged vs. post-Wave 1 baseline.

Note on elliptic

elliptic remains flagged "low" by npm audit (advisory range *,
"Risky Implementation"). The advertised fix requires
@angular-devkit/build-angular@21, which is a breaking change deferred
to the future Angular major upgrade. The pin in this PR does not
address that CVE; it only addresses the install-plan looseness.

Rollback

Single trivial commit, revert with git revert.

Related

Replace '>=' ranges with the exact currently-installed versions:

- dot-prop: '>=5.1.1' -> '9.0.0'

- elliptic: '>=6.5.3' -> '6.6.1'

The '>=' operator was the broadest allowed by npm and authorized any future major version without intervention. These two entries are historical resolution overrides (neither is imported from src/), so pinning them to the installed version is a no-op at runtime but removes a degree of freedom from the install plan and the supply-chain attack surface.

Build green, Karma 13/13 passing, audit count unchanged (147).

Note: elliptic remains flagged 'low' in 'npm audit' (Risky Implementation, advisory range *). The fix requires upgrading @angular-devkit/build-angular to v21, which is a breaking change deferred to the future Angular major upgrade.
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