LE

Leaflet

Lightweight JavaScript library for interactive maps

Maps & GIS ★ 45.7k stars Easy setup BSD-2-Clause

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

AdvisorySeveritySummary
CVE-2025-69993MediumLeaflet 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.

SelfHostIndex: 81 · excellent

Markdown
[![SelfHostIndex health score for Leaflet](https://selfhostindex.com/badge/leaflet.svg)](https://selfhostindex.com/app/leaflet/)
HTML
<a href="https://selfhostindex.com/app/leaflet/"><img src="https://selfhostindex.com/badge/leaflet.svg" alt="SelfHostIndex health score for Leaflet"></a>
reStructuredText
.. image:: https://selfhostindex.com/badge/leaflet.svg
   :alt: SelfHostIndex health score for Leaflet
   :target: https://selfhostindex.com/app/leaflet/

The score is recomputed on every nightly rebuild from public repository data — see how it is calculated.

Compare Leaflet

2 head-to-head comparisons.

Similar maps & gis apps