# Novu: Novu: Lagging UK region hit by Handlebars RCE, exposing 23,534 organizations’ keys

> **Safety notice:** Run only against your own authorized source repositories.

- **Incident date:** Nov 18–19, 2026
- **Disclosed:** Nov 19, 2026
- **Source disclosure:** https://novuhq.notion.site/Novu-Incident-report-November-19th-420d03ad838f80ae916fee0d55bc802f

## Reproduction lab
Checks your own Node.js lockfiles for vulnerable Handlebars versions (< 4.7.10) and scans class-validator DTOs for template fields missing @IsString().

```bash
# Flag any bundled Handlebars older than 4.7.10 in lockfiles
rg -n '"handlebars":\s*"[\^~]?4\.[0-7]\.[0-9]"' package.json pnpm-lock.yaml package-lock.json 2>/dev/null || echo "PASS: no Handlebars < 4.7.10 found"

# Locate @IsDefined() template properties lacking @IsString()
rg -n -A 3 '@IsDefined\(\)' src/ libs/ 2>/dev/null | rg -n 'template' || true
```

## Policies and detection rules

### `hunt-novu-ioc-and-ai-replay.sh`
Filters JSONL provider API or billing audit logs from Nov 18 20:00 UTC onward for Novu’s published attacker IP (109.238.87.4) and user agents, or off-baseline bursts to high-tier AI models. Limits step 3.

```sh
#!/usr/bin/env bash
set -euo pipefail
LOG="${1:-provider-audit.ndjson}"
UA_RE='python-requests/2\.32\.5|curl/8\.19\.0|Go-http-client/2\.0|Chrome/148\.0\.0\.0'
jq -c --arg re "$UA_RE" 'select(
  (.timestamp >= "2026-11-18T20:00:00Z") and (
    .source_ip == "109.238.87.4" or
    (.user_agent // "" | test($re))
  )
)' "$LOG"
```

### `guard-handlebars-and-region-iam.ts`
Runtime string guard for NestJS/class-validator template DTOs plus an AWS IAM deny policy blocking cross-region Secrets Manager reads from regional API server roles. Limits steps 1 and 2.

```ts
import { IsDefined, IsString } from 'class-validator';

export class SafeCompileTemplateCommand {
  @IsDefined()
  @IsString()
  template!: string;
}

export function assertStringTemplate(input: unknown): string {
  if (typeof input !== 'string') {
    throw new Error('Template input must be a string, not a pre-parsed AST object');
  }
  return input;
}
// Pair with an IAM Deny on secretsmanager:GetSecretValue where
// aws:ResourceTag/Region != aws:PrincipalTag/Region
```

## Indicators of compromise
- **ip:** `109.238.87.4` (Single attacker source IP published by Novu (RDAP UFO-TECHNOLOGIES-LIMITED / AS201738, BGP announced by AS55286 B2 Net Solutions; matches Wiz Agentic Attacks IOC CSV row 63).)
- **url:** `https://novuhq.notion.site/Novu-Incident-report-November-19th-420d03ad838f80ae916fee0d55bc802f` (Official Novu November 19 incident report detailing the lagging UK region, cross-region cloud credential read, 23,534 affected organizations, and Cloudflare Worker tampering.)
- **url:** `https://github.com/novuhq/novu/security/advisories/GHSA-244j-pq88-5m65` (Official Novu GitHub Security Advisory for Handlebars 4.7.9 RCE in @novu/api-service < 3.20.0 (patched in v3.20.0).)
- **url:** `https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-8r5x-fm3f-whwj` (Upstream Handlebars critical advisory (CVE-2026-106446) for AST type confusion in compile(), fixed in 4.7.10.)
