Repository navigation
📦 Update dependency terser to v5.51.3 [SECURITY] - #40585
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.14.2→5.51.3See all other Renovate PRs on the Dependency Dashboard
How to resolve breaking changes
This PR may introduce breaking changes that require manual intervention. In such cases, you will need to check out this branch, fix the cause of the breakage, and commit the fix to ensure a green CI build. To check out and update this PR, follow the steps below:
Terser: Input sourcemap sourcesContent leaks, revealing input source code
CVE-2026-140012 / GHSA-6jpm-p5cq-9q44
More information
Details
Impact
Leakage of user source code, which may include comments, constants with secret tokens, etc.
When using Terser with an input sourcemap (sourceMap.content), and this input sourcemap has original source information (
sourcesContent), Terser leaks thissourcesContentinto the output, even when the user specifiedincludeSources: falseto opt-out.Details
To help developers debug their JS applications, Terser's minify function reads and produces source maps.
To minify a JS file that has a corresponding source map, and generate a source map in turn, we call Terser's minify function like so:
Source maps may contain the content of files, in their
sourcesContentproperty. Files which may include secrets.Terser shouldn't include
sourcesContentby default, unless we passincludeSources: trueundersourceMapoptions.But it does include the
sourcesContentof the INPUTMAP even ifincludeSources: false, which is the leak we're discussing.Patches
The problem will be patched in version
5.51.3, and4.8.2.Workarounds
Do not use an input sourcemap (
sourceMap.contentoption).Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
terser/terser (terser)
v5.51.3Compare Source
includeSourcesis now required to be explicitly set when an input sourcemap is used.yieldandawaitused as a template tag (#1740) (#1741)v5.51.2Compare Source
v5.51.1Compare Source
v5.51.0Compare Source
??operator being considered a "boolean operator" sometimes causing booleans to be generated in its left side.v5.50.0Compare Source
v5.49.2Compare Source
importexpressionsv5.49.1Compare Source
new something(), which also has parenthesesimport()expression is parsed, it is no longer treated as a function call.v5.49.0Compare Source
boxoption to dompropsv5.48.0Compare Source
import source ...andimport defer ...(#1682)v5.47.1Compare Source
mangle.keep_fnameswith destructuringv5.47.0Compare Source
builtins_ecmaandbuiltins_pureoptionsv5.46.2Compare Source
unusedoption: delete computed keys of concise methods and getters/setters.Error.causeadded to DOM properties listfoo.barandfoo["bar"]to be equivalent when property mangler is enabled withkeep_quoted=strictoption.v5.46.1Compare Source
evaluateof method chainsInfinityfoo[(1, 2)])v5.46.0Compare Source
Temporalrelated) suggested in #1652v5.45.0Compare Source
void 0instead ofundefined, which is more safev5.44.1Compare Source
&&,||varis extracted from a deleted default casev5.44.0Compare Source
usingandawait usingdeclarations (#1635)v5.43.1Compare Source
lhs_constantstoCompressOptionstype (#1621)v5.43.0Compare Source
wrap_func_argsformat option is now false by default)v5.42.0Compare Source
v5.41.0Compare Source
keep_numbersformat option now works for bigintv5.40.0Compare Source
export {}(#1601)constandletresulting from ESTree input (#1599)v5.39.2Compare Source
yieldinside a template string.v5.39.1Compare Source
BigIntandnumberv5.39.0Compare Source
console.assertcalls (#1590)v5.38.2Compare Source
v5.38.1Compare Source
optional_call?.()v5.38.0Compare Source
consolemethod-of-method calls (egconsole.log.apply()) whendrop_consoleoption is used (#1585){ ...void !0 }(#1142)v5.37.0Compare Source
aand a computed class property["prop"]v5.36.0Compare Source
withsyntaxv5.35.0Compare Source
v5.34.1Compare Source
v5.34.0Compare Source
drop_console: emit an empty function if the return value ofconsole.METHOD(...)may be called.v5.33.0Compare Source
reduce_varsimproved when dealing with hoisted function definitions (#1544)v5.32.0Compare Source
import("module")can now be input and output from ESTree AST (#1557)BigIntliterals can now be input and output from ESTree AST (#1555)typeofan object or array (typeof {}andtypeof []) can now be statically evaluated. (#1546)v5.31.6Compare Source
casewhen the expression is a sequence (comma) expressionv5.31.5Compare Source
v5.31.4Compare Source
extendspartv5.31.3Compare Source
v5.31.2Compare Source
v5.31.1Compare Source
v5.31.0Compare Source
...spreadsin objects (#1141)v5.30.4Compare Source
#private in ...when next to other operatorsv5.30.3Compare Source
#private in ...operatorv5.30.2Compare Source
v5.30.1Compare Source
\escapes for non-ascii charactersv5.30.0Compare Source
v5.29.2Compare Source
v5.29.1Compare Source
v5.29.0Compare Source
v5.28.1Compare Source
(hotfix release)
v5.28.0Compare Source
|,^,&,>>,<<)BigIntmath operationsv5.27.2Compare Source
thisas a reference to the surrounding class indrop_unused. Closes #1472v5.27.1Compare Source
collapse_varsinlinesawaitexpressions into non-async functions.v5.27.0Compare Source
minify_sync()alternative tominify()since there's no async code left.v5.26.0Compare Source
/*#__PURE__*/annotation into account when theside_effectscompress option is off.preserve_annotationsoption now automatically opts annotation comments in, instead of requiring thecommentsoption to be configured for this.())v5.25.0Compare Source
pure_newoption added to drop unusednewexpressions.v5.24.0Compare Source
v5.23.0Compare Source
static {}blocks.v5.22.0Compare Source
unsafely shorten expressions like a?.toString() when they're conditional.v5.21.0Compare Source
v5.20.0Compare Source
minify()zero files will now throw a clean exception (#1450)drop_consolesupports passing in an array ofconsole.*method names (#1445)v5.19.4Compare Source
if..returnv5.19.3Compare Source
optional?.chains.v5.19.2Compare Source
v5.19.1Compare Source
</script>and HTML comments.asyncorstaticv5.19.0Compare Source
/*@__MANGLE_PROP__*/annotation inobject.property, in addition to property declarations.v5.18.2Compare Source
v5.18.1Compare Source
v5.18.0Compare Source
/*@__MANGLE_PROP__*/annotation, to mark properties that should be mangled.v5.17.7Compare Source
vRegExp flaginertDOM attribute to dompropsv5.17.6Compare Source
configurableandenumerable, used in Object.defineProperty, added to domprops (#1393)v5.17.5Compare Source
v5.17.4Compare Source
!class{})yield/awaitand its argumentv5.17.3Compare Source
this.v5.17.2Compare Source
varin hoisted functions.continuestatementv5.17.1Compare Source
.lengthwhen the source array might've been mutatedv5.17.0Compare Source
= undefineddefault argument in IIFE calls (#1366).lengthproperty when statically determinable@__KEY__annotation to mangle string literals (#1365)v5.16.9Compare Source
a?.b) (#1374)lhs_constantsoption, allowing to stop Terser from swapping comparison operands (#1361)v5.16.8Compare Source
reduce_varsimport.metaexpressions such that method calls are allowedv5.16.6Compare Source
reduce_varsimport.metaas a real AST node and not anobject.propertyv5.16.5Compare Source
v5.16.4Compare Source
(defaultArg = undefined) => ..., because default args don't count for function length?.optional chainscatchandfinallyaren't children oftryin the AST\p{...}) to parse identifiers when availablev5.16.3Compare Source
v5.16.2Compare Source
letout offorinitializers, as it can change scopingif (something) let x("let" in braceless if body)asObjectsourcemap option to typescript defs (#1321)v5.16.1Compare Source
const { [reference]: val } = ...).#privatefieldin nested classescollapse_varshandle block scope correctlyv5.16.0Compare Source
#privatefield in object(#1279)#privatefield in objectv5.15.1Compare Source
letorconstas the bodies ofifstatements (#1253)!==classes.v5.15.0Compare Source
AudioWorkletNodeconstructor options to domprops list (#1230)id(...expandedArgs)Configuration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 Automerge: Enabled.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.