Skip to content

Audit codebase security findings#88

Merged
maxatwork merged 3 commits intomasterfrom
dev
Feb 18, 2026
Merged

Audit codebase security findings#88
maxatwork merged 3 commits intomasterfrom
dev

Conversation

@maxatwork
Copy link
Owner

@maxatwork maxatwork commented Feb 18, 2026

Summary by cubic

Hardened parser security by rejecting unsafe key path segments by default and aligned DOM extraction with HTML semantics (disabled fieldsets, no button-like inputs). Added a writer hook, improved multi-select mapping, tightened ESLint, added a version bump script, and aligned packages to 3.1.0 with updated docs, tests, and repo/website links.

  • New Features

    • Added allowUnsafePathSegments option across core, dom, form-data, and jQuery plugin to explicitly allow trusted unsafe segments.
    • Added nodeCallback to objectToForm/js2form; returning false skips default assignment for that node.
    • Improved multi-select handling: matches names with [] and bare-name fallbacks without per-option keys.
    • Added bump-version script to sync workspace versions and ranges; bumped packages to 3.1.0.
    • Enabled vitest for examples and added smoke tests; updated tsconfig and lint script.
  • Bug Fixes

    • Prevented prototype pollution by blocking "proto", "prototype", and "constructor" path tokens by default.
    • objectToEntries now serializes only own enumerable properties.
    • DOM extraction respects disabled fieldset rules (legend exception) and excludes button-like inputs even when skipEmpty is false.
    • ESLint config now errors on unsafe TypeScript operations (no-unsafe-* rules).

Written for commit 7f7c257. Summary will update on new commits.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 16 files

@maxatwork maxatwork merged commit 3489799 into master Feb 18, 2026
4 checks passed
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