Detecting JavaScript Libraries on the Web using Property-Order Graphs
Sungmin Park, Seojin Kim, Ben Swierzy, Jihyeok Park
Key points
From the paper's conclusion- We present Debun, a scalable technique for detecting JavaScript libraries and their versions using function-level fingerprints.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Beyond Similarity Scores: Evidence-Based Third-Party Library Detection for C/C++ BinariesProceedings of the ACM on Software Engineering · 2026
- TraceLib: System-Call Bitmap Feedback Mechanism for Language-Agnostic Web FuzzingarXiv · 2026
- SecretSifter: A Runtime Secret-Detection Engine for Live Web TrafficarXiv · 2026
- ChainAgent: Automated Chainable Vulnerability Discovery in PHP Web ApplicationsarXiv · 2026
- “Wait, My Tool Can’t Do That?” A Fine-Grained Capability Study of Modern Static Taint AnalyzersACM Transactions on Software Engineering and Methodology · 2026
- Beyond the Surface: Towards Feature-Driven Fuzzing on the Chrome BrowserProceedings of the ACM on Software Engineering · 2026