release: v0.11.18 — clés computed fail-closed (SB-RCE-2026-01) - #507
Merged
Merged
Conversation
…2026-01, review 2026-08-26)
Nouvelle review du chercheur : foldStaticValue ne résolvait que 3 types de
nœuds (Literal, TemplateLiteral statique, '+') ; tout autre nœud statiquement
constant était traité comme dynamique et contournait les gardes
FORBIDDEN_PROPERTIES / whitelist. Formes acceptées à tort :
he[(0,'constructor')] (séquence)
he[(false||'constructor')] (logique)
he[(1?'constructor':'x')] (ternaire)
he[['constructor'][0]] (index de tableau)
he[String.fromCharCode(99,111,...)] (appel)
_[(0,'template')]('<%= 7*6 %>')({}) (reopen lodash.template)
Correctif (posture fail-closed + flux de valeur) :
- KNOWN_BINDINGS (libs + globals autorisés + new whitelist) : une clé sans
variable libre est statiquement constante ;
- foldStaticValue étendu (séquence, logique ||/&&/??, ternaire, unaire,
index/membre de littéraux, tableaux/objets littéraux) ;
- resolveKey : constante → repliée et contrôlée ; constante non résolvable
(appel, méthode de littéral, ...) → REJETÉE (fail-closed) ; clé à variable
libre → acceptée (résiduel) MAIS tout sous-chemin atteignant une valeur
interdite → rejeté ((x?['constructor']:[v])[0], (obj,'constructor')).
- Vérifié : 21 cas du chercheur bloqués, 28 patterns prod OK, 182 tests engine.
…ail-closed security(eval): clés computed fail-closed + flux de valeur (SB-RCE-2026-01)
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.
Migration master → production : v0.11.18 (fail-closed des clés computed + flux de valeur).