Skip to content

Upgrade Scriban to 7.0.0#25170

Merged
ebicoglu merged 2 commits into
rel-10.2from
upgrade/scriban-7.0.0
Mar 27, 2026
Merged

Upgrade Scriban to 7.0.0#25170
ebicoglu merged 2 commits into
rel-10.2from
upgrade/scriban-7.0.0

Conversation

@maliming

Copy link
Copy Markdown
Member

Upgrade Scriban from 6.6.0 to 7.0.0 to fix security vulnerability GHSA-v66j-x4hw-fv9g (DoS via string.pad_left/string.pad_right without width validation).

Scriban 7.0.0 changed ParserOptions and LexerOptions from struct to record, which also adds nullable annotations to IScriptCustomFunction interface. Updated ScribanTemplateLocalizer to match the new interface signatures.

Users who previously tried to override Scriban to 7.0.0 encountered a TypeLoadException due to the value type mismatch between the ABP NuGet package (compiled against 6.x) and Scriban 7.0.0 at runtime. This upgrade resolves that issue.

Copilot AI review requested due to automatic review settings March 27, 2026 07:01
@maliming maliming added the dependency-change Indicates a version change of a dependency (typically, upgrade) label Mar 27, 2026
@maliming maliming changed the base branch from dev to rel-10.2 March 27, 2026 07:03
@maliming maliming closed this Mar 27, 2026
@maliming maliming deleted the upgrade/scriban-7.0.0 branch March 27, 2026 07:03
@maliming maliming restored the upgrade/scriban-7.0.0 branch March 27, 2026 07:04
@maliming maliming reopened this Mar 27, 2026
@maliming maliming force-pushed the upgrade/scriban-7.0.0 branch from acd24ac to 4f204fa Compare March 27, 2026 07:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Upgrades the Scriban dependency used by ABP’s Scriban-based text templating integration to resolve a known DoS vulnerability and prevent runtime TypeLoadException issues when consuming Scriban 7.x.

Changes:

  • Bumped Scriban NuGet package from 6.6.0 to 7.0.0 via central package management.
  • Updated ScribanTemplateLocalizer to match Scriban 7’s nullable-annotated IScriptCustomFunction signatures.
  • Updated package version change documentation to include the Scriban bump.

Reviewed changes

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

File Description
framework/src/Volo.Abp.TextTemplating.Scriban/Volo/Abp/TextTemplating/Scriban/ScribanTemplateLocalizer.cs Adapts to Scriban 7 nullability changes and fixes argument array typing for IStringLocalizer.
docs/en/package-version-changes.md Records dependency version changes for release notes / tracking.
Directory.Packages.props Central package version bump for Scriban to 7.0.0.
Comments suppressed due to low confidence (1)

docs/en/package-version-changes.md:27

  • The Scriban package upgrade to 7.0.0 (see Directory.Packages.props) isn’t reflected in the 10.3.0-rc.1 table here. Please add a row documenting the version change (6.6.0 -> 7.0.0) in this section so the published package version change log stays accurate.
|---------|-------------|-------------|-----|
| Scriban | 6.3.0 | 6.6.0 | #25122 |

## 10.2.0-rc.1

| Package | Old Version | New Version | PR |
|---------|-------------|-------------|-----|
| MongoDB.Driver | 3.6.0 | 3.7.0 | #25003 |

## 10.2.0-preview

| Package | Old Version | New Version | PR |
|---------|-------------|-------------|-----|
| Blazorise | 1.8.8 | 2.0.0 | #24906 |
| Blazorise.Components | 1.8.8 | 2.0.0 | #24906 |
| Blazorise.DataGrid | 1.8.8 | 2.0.0 | #24906 |

@maliming maliming added this to the 10.2-final milestone Mar 27, 2026
@maliming maliming requested a review from ebicoglu March 27, 2026 07:15
@maliming maliming mentioned this pull request Mar 27, 2026
1 task
@ebicoglu ebicoglu merged commit d9e203d into rel-10.2 Mar 27, 2026
1 check passed
@ebicoglu ebicoglu deleted the upgrade/scriban-7.0.0 branch March 27, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

abp-framework dependency-change Indicates a version change of a dependency (typically, upgrade)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants