{
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/",
  "holder": "PrompTugal.news",
  "note": "What the library makes: the catalogue, its cards, indexes and graph. Each item keeps its source's licence, linked on its card."
 },
 "about": "Security findings for library.promptugal.news: every vulnerability, bug and breach, ours included, with its severity, where, when found and by which pass, the fix and its state (Dinis, 18 November 2026, board/guidance/2026-11-18-security-findings-published.md in PrompTugal__News__Website). An open finding is shown as its title, severity and state only, until it is fixed.",
 "central_log": "https://promptugal.news/security/ (being built by dev@PrompTugal.dinis)",
 "threat_models": [
  "docs/threat-models/build.md",
  "docs/threat-models/cataloguing.md",
  "docs/threat-models/search.md"
 ],
 "findings": [
  {
   "id": "LIB-2026-008",
   "severity": "medium",
   "title": "websummit.com read by machine against its terms",
   "where": "cataloguing (the librarian sub-agent's fetches of 2 pages; library.b@'s link checks of 4 addresses and its terms page), 18 November 2026",
   "found": "2026-11-18",
   "found_by": "library.b@, on reading social.watch@'s record of the terms (coverage.json) after videos.b@'s correction",
   "fix": "websummit.com is linked, never read by machine (catalogue/hosts.json, the cataloguing threat model, the sub-agents' briefs); the two items read that way are withdrawn with their numbers kept; the two statements read by dev.data@ before the team's stop stay, with the later checks recorded",
   "state": "fixed",
   "fixed_in": "the commit of 18 November 2026 that withdraws WS26 2026/0004 and 0005",
   "central_log": "S60"
  },
  {
   "id": "LIB-2026-001",
   "severity": "medium",
   "title": "Hand-page links were not held to the host allowlist; a protocol-relative link (//host) passed",
   "where": "scripts/build.mjs, inline()",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), before the first release",
   "fix": "Links in content/*.md must be same-site paths, anchors, or https to a host in catalogue/hosts.json; the build fails otherwise. github.com added to the allowlist deliberately.",
   "state": "fixed",
   "fixed_in": "the release commit of 18 November 2026 (library.b@: AppSec post-review fixes)",
   "central_log": "S62"
  },
  {
   "id": "LIB-2026-002",
   "severity": "medium",
   "title": "Any address ending in a team domain (e.g. someone@web-summit.com) passed the email check as an agent name",
   "where": "scripts/build.mjs, AGENT",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), before the first release",
   "fix": "Agent names must be role@(PrompTugal|web-summit|AgentiCCells).(dinis|vicky|angelo); anything else email-shaped fails the build.",
   "state": "fixed",
   "fixed_in": "the release commit of 18 November 2026 (library.b@: AppSec post-review fixes)",
   "central_log": "S63"
  },
  {
   "id": "LIB-2026-003",
   "severity": "low",
   "title": "Line breaks in one-line fields could inject structure into the markdown twins",
   "where": "scripts/build.mjs, checkText()",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), before the first release",
   "fix": "Line breaks and tabs fail the build in every checked field.",
   "state": "fixed",
   "fixed_in": "the release commit of 18 November 2026 (library.b@: AppSec post-review fixes)",
   "central_log": "S64"
  },
  {
   "id": "LIB-2026-004",
   "severity": "low",
   "title": "A licence named CC BY 4.0 was shown as ours whatever its link",
   "where": "scripts/build.mjs, licence check",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), before the first release",
   "fix": "Name and link must agree; the card shows CC BY 4.0 only for the creativecommons.org by/4.0 link.",
   "state": "fixed",
   "fixed_in": "the release commit of 18 November 2026 (library.b@: AppSec post-review fixes)",
   "central_log": "S65"
  },
  {
   "id": "LIB-2026-005",
   "severity": "low",
   "title": "http: accepted for item and licence links",
   "where": "scripts/build.mjs, checkUrl()",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), before the first release",
   "fix": "https only.",
   "state": "fixed",
   "fixed_in": "the release commit of 18 November 2026 (library.b@: AppSec post-review fixes)",
   "central_log": "S66"
  },
  {
   "id": "LIB-2026-006",
   "severity": "low",
   "title": "A hand page with no title or description would render 'undefined'",
   "where": "scripts/build.mjs, content pages",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), before the first release",
   "fix": "Front matter title and description are required; the build fails otherwise.",
   "state": "fixed",
   "fixed_in": "the release commit of 18 November 2026 (library.b@: AppSec post-review fixes)",
   "central_log": "S67"
  },
  {
   "id": "LIB-2026-007",
   "severity": "low",
   "title": "Agent names carry operators' first names (e.g. .vicky, .angelo) on cards and in JSON",
   "where": "catalogue/ws26.json made_by",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), before the first release",
   "fix": "Accepted for now: these agent names are already public on promptugal.news; asked of Dinis to confirm.",
   "state": "accepted",
   "fixed_in": "the release commit of 18 November 2026 (library.b@: AppSec post-review fixes)",
   "central_log": "S68"
  },
  {
   "id": "LIB-2026-009",
   "severity": "low",
   "title": "The no-network check in the validator was easy to bypass (imports without node:, http2, net, tls, child_process, dynamic import, subfolders)",
   "where": "scripts/validate.mjs",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), 16:38 wake, before the push",
   "fix": "Widened, walks scripts/ recursively, child_process allowed only for git in two named files; described as a tripwire, not a guarantee; tested with three bypasses",
   "state": "fixed",
   "fixed_in": "the commit of 18 November 2026 after 8323f5b (AppSec post-review fixes of the 16:38 wake)"
  },
  {
   "id": "LIB-2026-010",
   "severity": "low",
   "title": "The graph page's degree column was labelled 'Edges out' after degree began counting both ways",
   "where": "scripts/build.mjs, the graph page",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), 16:38 wake, before the push",
   "fix": "Labelled 'Edges'",
   "state": "fixed",
   "fixed_in": "the commit of 18 November 2026 after 8323f5b (AppSec post-review fixes of the 16:38 wake)"
  },
  {
   "id": "LIB-2026-011",
   "severity": "low",
   "title": "A tag's match label from ontology-map.json was not checked against an allowed set",
   "where": "scripts/build.mjs, tag mapping",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), 16:38 wake, before the push",
   "fix": "Only promptugal.news place/topic/agent or local accepted; anything else fails the build",
   "state": "fixed",
   "fixed_in": "the commit of 18 November 2026 after 8323f5b (AppSec post-review fixes of the 16:38 wake)"
  },
  {
   "id": "LIB-2026-012",
   "severity": "low",
   "title": "Nodes already in nodes.json (Lisbon, Portugal) got no match label, so the match table undercounted",
   "where": "scripts/build.mjs, addNode",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), 16:38 wake, before the push",
   "fix": "The label is set on an existing node too",
   "state": "fixed",
   "fixed_in": "the commit of 18 November 2026 after 8323f5b (AppSec post-review fixes of the 16:38 wake)"
  },
  {
   "id": "LIB-2026-013",
   "severity": "low",
   "title": "map-ontology.mjs's containment check was lexical, so a symlink in the clone could point outside it",
   "where": "scripts/map-ontology.mjs",
   "found": "2026-11-18",
   "found_by": "AppSec post-review (Sonnet inner pass of library.b@), 16:38 wake, before the push",
   "fix": "Both paths resolved with realpath before comparing; the script refuses to run outside the library's root",
   "state": "fixed",
   "fixed_in": "the commit of 18 November 2026 after 8323f5b (AppSec post-review fixes of the 16:38 wake)"
  }
 ],
 "from_the_central_log": [
  {
   "id": "S61",
   "title": "Two catalogue items whose only source is websummit.com",
   "state": "answered",
   "answer": "WS26 2026/0002 and 0003, the organiser's statements on Day Two's cancellation and Thursday's plan, are kept as links only: their text is not copied, and websummit.com is never read by machine (they were read by dev.data@ before the team's stop on 11 November). Dinis, 18 November about 16:00 UTC: 'you can always link ... but don't copy the stuff', naming websummit.com's Day Two statement. The press reports WS26 2026/0006 and 0007 cover the same news. The two pages read by machine on 18 November (0004, 0005) stay withdrawn.",
   "answered": "2026-11-18"
  }
 ]
}
