Detecting JavaScript Libraries on the Web using Property-Order Graphs

Detecting front-end JavaScript libraries is essential for website profiling, vulnerability detection, and dependency management. However, bundlers transpile code in various ways, altering its original structure and complicating detection. State-of-the-art techniques detect libraries at runtime by matching property patterns exposed through the global object. They therefore miss libraries inaccessible from the global object, and identify versions only when version labels are exposed or property-level differences are large. More recent approaches inspect the bundled source, but either target a single bundler or require the target library as input. We present Debun, a scalable technique for detecting JavaScript libraries and their versions using function-level fingerprints. Our key insight is that bundlers preserve property names and the execution order of property operations. We introduce the property-order graph (POG), which captures this order within a function body, and make it robust to interprocedural transformations such as function inlining through preprocessing. To detect partially imported libraries caused by tree shaking, we propose a dependency-aware scoring function. Evaluations on 68 high-traffic websites with 78 libraries show that Debun outperforms five state-of-the-art tools, achieving a 94.64% F1-score in library detection and identifying 88 of the 98 ground-truth versions at the patch level.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2026-11-12
DOI
https://doi.org/10.1145/3862477
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Detecting JavaScript Libraries on the Web using Property-Order Graphs

Jihyeok Park, Ben Swierzy, Sungmin Park, Seojin Kim
ACM Transactions on Software Engineering and Methodology
Software Engineering Research
article

Detecting JavaScript Libraries on the Web using Property-Order Graphs

Jihyeok Park, Ben Swierzy, Sungmin Park, Seojin Kim
article en

Abstract

Detecting front-end JavaScript libraries is essential for website profiling, vulnerability detection, and dependency management. However, bundlers transpile code in various ways, altering its original structure and complicating detection. State-of-the-art techniques detect libraries at runtime by matching property patterns exposed through the global object. They therefore miss libraries inaccessible from the global object, and identify versions only when version labels are exposed or property-level differences are large. More recent approaches inspect the bundled source, but either target a single bundler or require the target library as input. We present Debun, a scalable technique for detecting JavaScript libraries and their versions using function-level fingerprints. Our key insight is that bundlers preserve property names and the execution order of property operations. We introduce the property-order graph (POG), which captures this order within a function body, and make it robust to interprocedural transformations such as function inlining through preprocessing. To detect partially imported libraries caused by tree shaking, we propose a dependency-aware scoring function. Evaluations on 68 high-traffic websites with 78 libraries show that Debun outperforms five state-of-the-art tools, achieving a 94.64% F1-score in library detection and identifying 88 of the 98 ground-truth versions at the patch level.

ACM Transactions on Software Engineering and Methodology
University of Bonn (DE), North Carolina State University (US), Korea University (KR), Fraunhofer Institute for Communication, Information Processing and Ergonomics (DE)
National Research Foundation of Korea, Rheinische Friedrich-Wilhelms-Universität Bonn, Ministry of Science and ICT, South Korea, Institute for Information and Communications Technology Promotion
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon