Repository navigation
v0.8.1
ExisJS Release v0.8.1
Release Date: 2026-10-12
Type: Patch: Security Fixes & Deployment Build Fix
Affected Packages: exisjs, create-exisjs, @exisjs/fetch (all aligned to 0.8.1)
Highlights
- Two security fixes in
ipFilterandserveStatic. Upgrade if you use either. - Deploys no longer fail on hosts that skip
devDependencies(Render, Heroku and others).
⚠️ Behavior Change: ipFilter behind a proxy
ipFilter now checks req.ip and nothing else. If your app runs behind a proxy or load balancer and you use ipFilter (or @IpFilter), set trustProxy in exis.config.ts, otherwise req.ip is the proxy's address:
export default {
trustProxy: 1, // number of proxies in front of the app
}Without it, an allow-list will reject every request (it sees the proxy address) and a deny-list will not match clients. The trustProxy option of ipFilter itself is deprecated and ignored.
Security
ipFilterallow-lists and deny-lists could be bypassed. The middleware read the first value ofX-Forwarded-Forby default, a header any client can set. SendingX-Forwarded-For: 10.0.0.1was enough to passipFilter({ allow: ['10.0.0.0/8'] }), and any value was enough to escape a deny-list. It now usesreq.ip, which only honors forwarding headers from proxies the app is configured to trust.serveStaticcould serve files from a sibling directory. The root check compared path prefixes without a separator, so with a root ofpublic, a request for/../public-private/filewas served from a neighbouring directory whose name starts withpublic. Directories that do not share the root's name prefix were never reachable. The check now requires the path to be inside the root.
Fixed
exisjs buildfailed on hosts that install withoutdevDependencies. WithNODE_ENV=production,npm installleaves out@types/nodeand other@types/*packages, and the build's type-check reported dozens of errors such asCannot find name 'process'on correct code. When@types/*packages listed indevDependenciesare not installed, the build now skips the type-check with a warning and compiles as usual. To keep the type-check on the host, install withnpm install --include=dev.
Changed
dbSanitize()reusesmongoSanitize()instead of carrying a copy of its code. No behavior change.
Tooling
- Updated the
proxy-addrdevelopment dependency (advisory GHSA-jqcg-44mw-7w3h). It is used only by the benchmark suite and was never part of the published packages.
Upgrade Guide
npm install exisjs@0.8.1No code changes are needed unless you use ipFilter behind a proxy; see the behavior change above.
Full Changelog: v0.8.0...v0.8.1