Skip to content

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.

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:

Terminal window
pam self-update --check
pam self-update

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.
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.

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:

index.php
<?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'],
]);

See Production and the Configuration Reference for every option.

Never commit secrets, and never include them in diagnostics or reports:

  • TLS private keys;
  • Redis and NATS credentials;
  • WebSocket resume secrets;
  • metrics tokens;
  • APP_KEY and application .env files;
  • 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.

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.

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.

Release gates run cargo deny, composer audit, fuzzing, and sanitizer builds. Audit your own dependency graph too:

Terminal window
pam composer audit

An audit result is evidence about known advisories in one exact dependency graph, not proof that an application has no vulnerability.