Leaflet
Lightweight JavaScript library for interactive maps
Leaflet is a leading open-source JavaScript library for building mobile-friendly interactive maps. It is small, simple, and works with many tile providers and a large plugin ecosystem.
Key features
- Tiny footprint
- Mobile-friendly
- Huge plugin ecosystem
- Works with any tile source
Pros & cons
Strengths
- Tiny library footprint
- Huge plugin ecosystem
- Mobile-friendly by default
Trade-offs
- Tile provider needed
- No built-in 3D
Is Leaflet secure?
1 known vulnerability affects Leaflet's latest release (v1.9.4) according to OSV.dev; the most severe is rated medium.
Affecting v1.9.4
| Advisory | Severity | Summary |
|---|---|---|
| CVE-2025-69993 | Medium | Leaflet versions up to and including 1.9.4 are vulnerable to Cross-Site Scripting (XSS) via the bindPopup() method. |
Source: OSV.dev, checked 2026-10-14. How this is measured.
Leaflet replaces
Health badge
Maintain Leaflet? Add its health score to your README. The badge links back to this page.
Compare Leaflet
2 head-to-head comparisons.
Similar maps & gis apps
deck.gl
Maps & GISWebGL-powered framework for large-scale data visualization on maps
Replaces Mapbox visualization, ArcGIS
QGIS
Maps & GISFree and open-source geographic information system
Replaces ArcGIS
OpenLayers
Maps & GISHigh-performance library for all kinds of web maps
Replaces Google Maps JavaScript API
kepler.gl
Maps & GISOpen-source geospatial data visualization tool
Replaces Tableau, ArcGIS
MapLibre GL JS
Maps & GISOpen-source interactive vector map library for the web
Replaces Mapbox GL JS, Google Maps JavaScript API
Dawarich
Maps & GISSelf-hosted location history tracker and visualizer
Replaces Google Maps Timeline