{"items":[{"id":"NVI-00016252","kind":"vulnerability","title":"defuddle vulnerable to XSS via unescaped string interpolation in _findContentBySchemaText image tag","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-5mq8-78gm-pjmq","CVE-2026-30830"],"plain_summary":"GitHub lists this reviewed advisory for defuddle. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-58b87816a89b3e9d2881a461b4e350d6"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-20T21:30:36.000Z","value":"6.1 low","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-56d3a60c6dd1bab78bfb21e2bb51180b"},{"kind":"CVSS","as_of":"2026-06-17T10:32:59.390Z","value":"6.1 MEDIUM (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-58b87816a89b3e9d2881a461b4e350d6"},{"kind":"CVSS","as_of":"2026-06-17T10:32:59.390Z","value":"2.1 LOW (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-58b87816a89b3e9d2881a461b4e350d6"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-56d3a60c6dd1bab78bfb21e2bb51180b","url":"https://github.com/advisories/GHSA-5mq8-78gm-pjmq","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-5mq8-78gm-pjmq","publisher":"GitHub Advisory Database","observed_at":"2026-11-03T22:35:18.117Z"},{"id":"sr-58b87816a89b3e9d2881a461b4e350d6","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30830","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-30830","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-07T13:57:42.260Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-56d3a60c6dd1bab78bfb21e2bb51180b"],"technology":"defuddle","known_exclusions":[],"conditions_summary":"### Summary\n\nThe `_findContentBySchemaText` method in `src/defuddle.ts` interpolates image `src` and `alt` attributes directly into an HTML string without escaping:\n\n```typescript\nhtml += ``;\n```\n\nAn attacker can use a `\"` in the `alt` attribute to break out of the attribute context and inject event handlers. This is a separate vulnerability from the sanitization bypass fixed in f154cb7 — the injection happens during string construction, not in the DOM, so `_stripUnsafeElements` cannot catch it.\n\n### Details\n\nWhen `_findContentBySchemaText` finds a sibling image outside the matched content element, it reads the image's `src` and `alt` attributes via `getAttribute()` and interpolates them into a template literal. `getAttribute('alt')` returns the raw attribute value. If the alt contains `\"`, it terminates the `alt` attribute in the interpolated HTML string, and subsequent content becomes new attributes (including event handlers).\n\nThe recently added `_stripUnsafeElements()` (commit f154cb7) strips `on*` attributes from DOM elements, but the `alt` attribute's name is `alt` (not `on*`), so it is preserved with its full value. The `onload` handl","public_affected_ranges":["<= 0.7.0"]}],"null_published_at":"2026-11-07T18:43:12.112Z","source_updated_at":"2026-07-20T21:30:36.000Z","source_disclosed_at":"2026-03-06T18:39:35.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-11-03T22:35:18.117Z"},{"id":"NVI-00016252","kind":"vulnerability","title":"defuddle vulnerable to XSS via unescaped string interpolation in _findContentBySchemaText image tag","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-5mq8-78gm-pjmq","CVE-2026-30830"],"plain_summary":"GitHub lists this reviewed advisory for defuddle. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-56d3a60c6dd1bab78bfb21e2bb51180b"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-20T21:30:36.000Z","value":"6.1 low","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-56d3a60c6dd1bab78bfb21e2bb51180b"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-56d3a60c6dd1bab78bfb21e2bb51180b","url":"https://github.com/advisories/GHSA-5mq8-78gm-pjmq","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-5mq8-78gm-pjmq","publisher":"GitHub Advisory Database","observed_at":"2026-11-03T22:35:18.117Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-56d3a60c6dd1bab78bfb21e2bb51180b"],"technology":"defuddle","known_exclusions":[],"conditions_summary":"### Summary\n\nThe `_findContentBySchemaText` method in `src/defuddle.ts` interpolates image `src` and `alt` attributes directly into an HTML string without escaping:\n\n```typescript\nhtml += ``;\n```\n\nAn attacker can use a `\"` in the `alt` attribute to break out of the attribute context and inject event handlers. This is a separate vulnerability from the sanitization bypass fixed in f154cb7 — the injection happens during string construction, not in the DOM, so `_stripUnsafeElements` cannot catch it.\n\n### Details\n\nWhen `_findContentBySchemaText` finds a sibling image outside the matched content element, it reads the image's `src` and `alt` attributes via `getAttribute()` and interpolates them into a template literal. `getAttribute('alt')` returns the raw attribute value. If the alt contains `\"`, it terminates the `alt` attribute in the interpolated HTML string, and subsequent content becomes new attributes (including event handlers).\n\nThe recently added `_stripUnsafeElements()` (commit f154cb7) strips `on*` attributes from DOM elements, but the `alt` attribute's name is `alt` (not `on*`), so it is preserved with its full value. The `onload` handl","public_affected_ranges":["<= 0.7.0"]}],"null_published_at":"2026-11-04T10:04:27.923Z","source_updated_at":"2026-07-20T21:30:36.000Z","source_disclosed_at":"2026-03-06T18:39:35.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-03T22:35:18.117Z"}],"next_cursor":null,"snapshot_revision":"42594"}