# Security Policy

## Supported versions

While MaplibreX is below 1.0, only its latest minor version is supported.

| Version | Supported |
| ------- | --------- |
| 0.4.x   | ✅        |
| < 0.4   | ❌        |

## Reporting a vulnerability

Please **do not** open a public issue for a security vulnerability.

Report it privately through
[GitHub's security advisory form](https://github.com/CountlinkX-Solutions/maplibrex/security/advisories/new),
or by email to admin@countlinkx.com.

Include the affected version, a description of the issue, and steps to
reproduce it. We aim to acknowledge reports within 72 hours and to ship a fix
or a mitigation plan within 30 days.

## Scope

MaplibreX renders map configuration supplied by your application into `data-`
attributes (`data-config`, and `data-geojson` and `data-records` for layer data)
and hands it to MapLibre GL JS. Treat any user-supplied value that reaches a
component attribute — style, tile and data URLs, popup HTML — as untrusted
input and sanitise it on the server. In particular, the `popup_html` attribute
of `<.marker>` renders raw markup and is not escaped.
