Skip to content

[2.x] Bump lodash-es from 4.17.3 to 4.18.1#3042

Merged
pascalbaljet merged 1 commit intoinertiajs:2.xfrom
danielperez9430:2.x
Apr 7, 2026
Merged

[2.x] Bump lodash-es from 4.17.3 to 4.18.1#3042
pascalbaljet merged 1 commit intoinertiajs:2.xfrom
danielperez9430:2.x

Conversation

@danielperez9430
Copy link
Copy Markdown

@danielperez9430 danielperez9430 commented Apr 6, 2026

lodash vulnerable to Code Injection via _.template imports key names

Description

The fix for CVE-2026-4800 added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink.

When an application passes untrusted input as options.imports key names, an attacker can inject default-parameter expressions that execute arbitrary code at template compilation time.
Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function().

Severity: High
CVSS: v3.1 - 8.1

Report type: Dependency Scanning
Scanner: GitLab SBoM Vulnerability Scanner

Links

Solution Upgrade to version 4.18.0 or above.

@danielperez9430 danielperez9430 changed the title Bump lodash-es from 4.17.3 to 4.18.1 [2.x] Bump lodash-es from 4.17.3 to 4.18.1 Apr 6, 2026
@pascalbaljet pascalbaljet merged commit cf33025 into inertiajs:2.x Apr 7, 2026
36 checks passed
@pascalbaljet
Copy link
Copy Markdown
Member

Thanks!

@danielperez9430 danielperez9430 deleted the 2.x branch April 7, 2026 07:06
@danielperez9430 danielperez9430 restored the 2.x branch April 7, 2026 07:07
@danielperez9430
Copy link
Copy Markdown
Author

Good morning @pascalbaljet,

I have a question: when will it be available on npm?

The latest version available is .18, and I see you're currently on .20 in the repository.

@pascalbaljet
Copy link
Copy Markdown
Member

@danielperez9430 I'll tag a new release today.

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.

2 participants