Skip to content

Fix the vulnerable npm packages.#24703

Open
maliming wants to merge 4 commits intodevfrom
jquery-form
Open

Fix the vulnerable npm packages.#24703
maliming wants to merge 4 commits intodevfrom
jquery-form

Conversation

@maliming
Copy link
Member

@maliming maliming commented Jan 22, 2026

Resolve #24702

@maliming maliming changed the title Remove jquery-form package and update abpAjaxForm Fix the vulnerable npm packages. Jan 23, 2026
@maliming maliming added this to the 10.1-final milestone Jan 23, 2026
@maliming maliming marked this pull request as ready for review January 23, 2026 02:52
Copilot AI review requested due to automatic review settings January 23, 2026 02:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request addresses a security vulnerability by removing the deprecated and vulnerable jquery-form npm package and replacing its functionality with a custom implementation using modern browser APIs. Additionally, it adds a missing peer dependency (moment) to the bootstrap-daterangepicker package.

Changes:

  • Removed the vulnerable @abp/jquery-form package dependency from the shared theme package
  • Replaced jquery-form's ajaxForm functionality with a custom implementation using native FormData API and jQuery's $.ajax
  • Added missing @abp/moment dependency to @abp/bootstrap-daterangepicker package (required by the underlying library)
  • Removed JQueryFormScriptContributor class and its references from the bundling configuration

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
npm/packs/bootstrap-daterangepicker/package.json Added missing @abp/moment dependency required by bootstrap-daterangepicker library
npm/packs/aspnetcore.mvc.ui.theme.shared/package.json Removed vulnerable @abp/jquery-form dependency from shared theme package
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery-form/jquery-form-extensions.js Replaced jquery-form library usage with custom implementation using FormData API and jQuery.ajax
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/Bundling/SharedThemeGlobalScriptContributor.cs Removed references to JQueryFormScriptContributor and its using statement
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/JQueryForm/JQueryFormScriptContributor.cs Deleted obsolete JQueryFormScriptContributor class that wrapped the vulnerable package

@maliming maliming modified the milestones: 10.1-final, 10.2-preview Feb 5, 2026
@maliming maliming changed the base branch from rel-10.1 to dev February 5, 2026 09:15
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