Security Policy
Security reports are handled privately, so maintainers can investigate and ship a fix before exploit details become public. This page explains which versions receive fixes, how to report a vulnerability, what response to expect, and which secure defaults are part of PAM’s contract.
Supported Versions
Section titled “Supported Versions”| Component | Supported | Fixes ship in |
|---|---|---|
PAM runtime (pam binary, native extension, PHP runtime files) |
latest 2.2.x release | the next 2.2.x patch release |
Nimbus (pushinbr/nimbus) |
latest 0.x minor | the next patch of that minor |
Arcano ORM (pushinbr/arcano) |
latest 0.x minor | the next patch of that minor |
| PAM 2.1 and older; older Nimbus and Arcano minors | no | upgrade |
The bundled PHP runtimes track upstream PHP security releases: a PHP security release is followed by a PAM release that ships the new runtimes. Check for and install updates with:
pam self-update --checkpam self-updateReporting a Vulnerability
Section titled “Reporting a Vulnerability”Do not open a public issue containing an exploit, a proof of concept, or a
secret. Instead, use GitHub’s private reporting flow:
Report a vulnerability
on the Security tab of push-in/pam. Split package mirrors (such as Nimbus)
redirect their reports to the same place.
Include:
- the affected component and version;
- the impact and a realistic threat model;
- a reproduction, ideally a minimal synthetic fixture;
- a suggested mitigation, when you have one.
What Happens Next
Section titled “What Happens Next”| Step | Target |
|---|---|
| Acknowledgement | within 72 hours |
| Assessment (accepted or not, and severity) | within 7 days |
| Fix or mitigation for critical and high severity issues | within 30 days |
After the fix ships, a GitHub Security Advisory lists the fixed versions and credits the reporter, unless you prefer otherwise. Please give the maintainers that time before disclosing publicly.
Hardening Defaults
Section titled “Hardening Defaults”These defaults are part of the security contract. Changing one is a behaviour change that the changelog and the Upgrade Guide call out.
| Default | How to change it |
|---|---|
X-Forwarded-For is honoured only from trusted proxies, and the client is the rightmost untrusted entry. |
trustedProxies option or PAM_TRUSTED_PROXIES (addresses or CIDR ranges) |
The worker metricsPath answers loopback peers only. |
metricsToken / PAM_METRICS_TOKEN, or metricsPublic / PAM_METRICS_PUBLIC=1 |
WebSocket upgrades from another site’s page are refused with 403. |
websocketOrigins / PAM_WEBSOCKET_ORIGINS (falls back to corsOrigins) |
| Request bodies held by PHP are bounded per worker. | maxInflightBodyBytes / PAM_MAX_INFLIGHT_BODY_BYTES |
Errors never expose messages or traces to clients; display_errors and expose_php are off. |
exposeErrors (development only) |
For example, a production server behind a load balancer on a private network:
<?php
use Pam\Http\Request;use Pam\Http\Response;use Pam\Http\Server;
Server::create(static function (Request $request, Response $response): void { $response->json(['ok' => true]);})->listen(8080, '0.0.0.0', [ 'trustedProxies' => ['10.0.0.0/8'], 'websocketOrigins' => ['https://app.example.com'],]);PAM_TRUSTED_PROXIES=10.0.0.0/8 \PAM_WEBSOCKET_ORIGINS=https://app.example.com \PAM_METRICS_TOKEN="$(cat /run/secrets/metrics-token)" \pam start index.phpSee Production and the Configuration Reference for every option.
Keeping Secrets Out
Section titled “Keeping Secrets Out”Never commit secrets, and never include them in diagnostics or reports:
- TLS private keys;
- Redis and NATS credentials;
- WebSocket resume secrets;
- metrics tokens;
APP_KEYand application.envfiles;- signing keys and access tokens;
- production database contents.
When you need to share diagnostics, use pam support, which redacts paths and
never collects file contents or environment variables. If a credential leaks,
rotate it immediately.
Shared Responsibility
Section titled “Shared Responsibility”PAM provides bounded parsers, request and body limits, verified TLS clients, the trusted-proxy policy, worker isolation and recycling, structured diagnostics, and an isolated PHP configuration.
Your application remains responsible for authentication, authorization, input validation, tenant isolation, secret management, safe package selection, database policy, and business-level idempotency. In a persistent runtime, also make sure no user data survives in static properties between requests; see Memory & State.
Native and Desktop Applications
Section titled “Native and Desktop Applications”PAM Native validates protocol versions, counts, enum identifiers, tree shape, and payload and event sizes before applying any mutation. Native plugins can bring native code and permissions, so review them like any other Android or iOS dependency.
PAM Desktop keeps native capabilities disabled by default and scoped by PHP policy; the interface receives named APIs, not a generic shell or filesystem bridge. See Desktop Security.
Dependencies
Section titled “Dependencies”Release gates run cargo deny, composer audit, fuzzing, and sanitizer builds.
Audit your own dependency graph too:
pam composer auditAn audit result is evidence about known advisories in one exact dependency graph, not proof that an application has no vulnerability.