Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@moostjs/event-http

Latest version: v0.7.13

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: mav-rik
5 Stars
0 Forks
32 Versions
3.8K Downloads
TypeScript Repo language

Scan summary

@moostjs/event-http was last scanned on 29 Nov 2026 at version 0.7.13. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 32 versions; the latest 5 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 0.7.13.
  • Downloads: 3,803 downloads.

Versions

32 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.13 LATEST 29 Nov 2026 No rules fired
0.7.12 29 Nov 2026 No rules fired
0.7.11 26 Nov 2026 No rules fired
0.7.10 26 Nov 2026 Not shown
0.7.9 25 Nov 2026 Not shown

No rules fired in 0.7.13

Findings

Findings for v0.7.13. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.7.13; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@moostjs/event-http

Welcome to @moostjs/event-http, a Moostjs library that serves as a wrapper for @wooksjs/event-http. This package provides decorators for composing functions, thereby enhancing the simplicity and efficiency of your Moost application.

Note: As @moostjs/event-http is under active development, breaking changes can be expected.

Overview

The @moostjs/event-http module plays a crucial role in making Moost apps receptive to HTTP events. By employing it in your project, you can create handlers for HTTP events in a declarative, structured manner.

Getting Started

Starting a new Moost HTTP project is quite simple. All you need to do is run the following command:

npm create moost -- --http

You can also provide a name for your project:

npm create moost my-web-app -- --http

This command will initiate a setup tool that will guide you through the project initialization process. It will prompt you to configure:

  • Project and package name.
  • Whether to add WebSockets.
  • Whether to include a Moost Workflows example.
  • Whether to add OXC lint and formatter (oxlint + oxfmt).

Auth Guards

Declarative authentication guards with automatic Swagger/OpenAPI security scheme discovery.

Functional API
import { Authenticate, defineAuthGuard, HttpError } from '@moostjs/event-http'

const jwtGuard = defineAuthGuard({ bearer: { format: 'JWT' } }, (transports) => {
  if (!transports.bearer) throw new HttpError(401, 'Missing token')
  // verify and return user info
})

@Authenticate(jwtGuard)
@Controller('users')
class UsersController { ... }
Class-based API
import { AuthGuard, Authenticate, HttpError } from '@moostjs/event-http'
import { Injectable } from 'moost'

@Injectable()
class JwtGuard extends AuthGuard<{ bearer: { format: 'JWT' } }> {
  static transports = { bearer: { format: 'JWT' } } as const

  handle(transports: { bearer: string }) {
    if (!transports.bearer) throw new HttpError(401, 'Missing token')
  }
}

@Authenticate(JwtGuard)
@Controller('users')
class UsersController { ... }

Supported transports: bearer, basic, apiKey (header/query/cookie), cookie.

Programmatic Fetch (SSR)

MoostHttp exposes fetch() and request() methods for in-process route invocation with the full Moost pipeline (DI, interceptors, pipes, validation) — no TCP round-trip.

const http = new MoostHttp()
app.adapter(http)
await app.init()

// Web Standard fetch API
const response = await http.fetch(new Request('http://localhost/api/hello/world'))

// Convenience form
const response = await http.request('/api/hello/world')
const response = await http.request('/api/users', {
  method: 'POST',
  body: JSON.stringify({ name: 'Alice' }),
  headers: { 'content-type': 'application/json' },
})

Returns Response | null — null means no route matched.

When called from within an existing HTTP context (e.g. during SSR), identity headers (authorization, cookie) are automatically forwarded.

enableLocalFetch

Patches globalThis.fetch so that local paths are routed in-process through Moost. External URLs pass through to the original fetch. Falls back to original fetch if no route matches.

import { enableLocalFetch } from '@moostjs/event-http'

const teardown = enableLocalFetch(http)

// Now any fetch('/api/...') goes through Moost in-process
const res = await fetch('/api/hello/world')

// Restore original fetch
teardown()

This is wired up automatically by @moostjs/vite (see ssrFetch option).

Official Documentation

AI Agent Skill

A unified Moost skill for AI coding agents (Claude Code, Cursor, Windsurf, Codex, OpenCode) covers this package along with the rest of the framework:

npx skills add moostjs/moostjs

Contributing

We are excited to welcome contributors who are passionate about improving Moostjs. No matter your level of experience, your unique perspective and skills can make valuable contributions to our growing community.

Here are some basic steps to get you started:

  1. Fork the Repo: Navigate to moostjs and fork the repository to your own GitHub account.

  2. Clone the Repo: Clone the forked repository to your local machine.

  3. Create a Branch: Make a new branch for your feature or bug fix.

  4. Make your Changes: Implement your feature or fix the bug and commit the changes to your branch.

  5. Make a Pull Request: Navigate back to your forked repo and press the "New pull request" button.

Don't hesitate to ask for help if you need it. We believe in fostering a friendly and respectful environment for all contributors.

Thank you for your interest in Moostjs. We look forward to building something amazing together!

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @moostjs/event-http

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229