Fuzzing JavaScript JIT Compilers With Optimization Path Feedback
- 8 May 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Dependable and Secure Computing
- Vol. 23 (4) , 9178-9195
Abstract
Just-In-Time (JIT) compiler is a core component of JavaScript engines, which takes JavaScript code as input and applies a series of optimization passes on it and transforms it to machine code. The optimization passes often have some assumptions (e.g., variable types) on the input program, and therefore will yield vulnerabilities if the assumptions are violated. To discover such bugs, it is essential to thoroughly test different optimization passes, but previous work fails to do so and mainly focused on exploring code coverage. In this paper, we present the first optimization path guided fuzzing solution for JavaScript JIT compilers, namely OptFuzz, which focuses on exploring optimization paths. Specifically, we utilize an optimization subpath metric to approximate the optimization path, and use it as feedback to guide seed preservation and seed scheduling. Furthermore, we identify optimization triggering by analyzing code transformations at the JIT intermediate representation (IR) level, and preserve optimization subpaths only when optimizations are triggered. We implemented OptFuzz on four baseline fuzzers and evaluated it on 4 mainstream JavaScript engines. On earlier engine versions, OptFuzz found several times more bugs than baselines. On the latest engines, OptFuzz discovered 52 new bugs, among which 43 have been confirmed or fixed.Keywords
Funding Information
- National Natural Science Foundation of China (62272442)
- National Natural Science Foundation of China (61902374)
- National Natural Science Foundation of China (3U1736208)
- CAS Project for Young Scientists in Basic Research (YSBR-118)
This publication has 21 references indexed in Scilit:
- Effective Seed Scheduling for Fuzzing with Graph Centrality Analysis2022
- One Engine to Fuzz ’em All: Generic Language Processor Testing with Semantic Validation2021
- Fuzzing JavaScript Engines with Aspect-preserving Mutation2020
- Cerebro: context-aware adaptive fuzzing for effective vulnerability detection2019
- Superion: Grammar-Aware Greybox Fuzzing2019
- MemFuzz: Using Memory Accesses to Guide Fuzzing2019
- CollAFL: Path Sensitive Fuzzing2018
- SlowFuzz2017
- Skyfire: Data-Driven Seed Generation for Fuzzing2017
- Coverage-based Greybox Fuzzing as Markov Chain2016