@patchstack/connect 0.2.11 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,19 @@
1
1
  {
2
- "_comment": "DEMO SCAFFOLD — static stub; the real per-site rules endpoint does not exist in saas yet. CVE-2022-21681 is a real marked advisory affecting <4.0.10 (demo installs 4.0.0). The demo uses an XSS-shaped payload for visual clarity; exact payload<->CVE alignment is pinned with Group 1's corpus.",
2
+ "_comment": "Demo fallback rules — used only when PATCHSTACK_WAF_TOKEN is unset. In production the guard fetches per-site rules from the Patchstack API (api.patchstack.com/api/get-rules/3, cached to disk). CVE id is representative until aligned with the real corpus.",
3
3
  "firewall": [
4
4
  {
5
5
  "id": "rm-npm-0001",
6
6
  "title": "Block stored XSS via vulnerable markdown renderer (marked)",
7
7
  "vulnerability_id": "CVE-2022-21681",
8
- "package_cond": {
9
- "package": "marked",
10
- "vulnerable_versions": ["4.0.0"]
11
- },
12
8
  "rule_v2": [
13
9
  {
14
- "parameter": ["insert.title", "body.title", "update.title"],
10
+ "parameter": "post.title",
15
11
  "mutations": ["urldecode"],
16
12
  "match": { "type": "inline_xss" }
17
13
  }
18
14
  ]
19
15
  }
20
16
  ],
21
- "whitelists": []
17
+ "whitelists": [],
18
+ "whitelist_keys": {}
22
19
  }