<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-02T16:03:09.350794+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/fkie_cve-2026-97711</id>
    <title>fkie_cve-2026-97711</title>
    <updated>2026-10-02T16:03:09.353835+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. From 7.1.1 until 7.1.2, function values serialized by serialize-javascript are not fully protected against script-closing tags in attacker-influenced function source because SCRIPT_CLOSE_REGEXP can consume a second closing tag inside one match. When the serialized function is embedded in a script element, the surviving closing tag terminates the element early and causes the remaining output to be parsed as HTML, enabling cross-site scripting in the page origin. Only function values are affected; ordinary data values and options.isJSON output are unaffected. This issue is fixed in version 7.1.2.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-97711"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-gfhx-hw2g-v5hg</id>
    <title>GHSA-gfhx-hw2g-v5hg — Serialize JavaScript: Cross-site scripting (XSS) via unescaped &lt;/script&gt; in serialized function bodies</title>
    <updated>2026-10-02T16:03:09.353937+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: serialize-javascript</p>
<p>### Impact</p>
<p>`serialize-javascript` escapes its output so it is safe to embed inside a
`&lt;script&gt;` element. In 7.1.1 that guarantee does not hold for **function
values**: a crafted function body can carry a literal, unescaped `&lt;/script&gt;`
into the output, terminating the script element early so the remainder is
parsed as HTML.</p>
<p>`SCRIPT_CLOSE_REGEXP` used `&lt;\/script[^&gt;]*&gt;` as its first alternative. The
character class excludes only `&gt;`, so a single match could run from one
`&lt;/script` all the way to the next `&gt;` anywhere in the source — swallowing a
second, complete `&lt;/script&gt;` along the way. Only one replacement is emitted
per match, and the plain-code branch neutralizes just the leading `&lt;`
(`'&lt; ' + match.slice(1)`), so the swallowed tag was re-emitted verbatim.</p>
<p>Reaching that shape requires `&lt;/script` in code position, which is legal
JavaScript: `x&lt;/script=+/` parses as `x &lt; /script=+/`, a comparison against a
regex literal.</p>
<p>```js
const serialize = require('serialize-javascript');
const src = "function f(x){ return x&lt;/script=+/ + '&lt;/script&gt;&lt;img src=x onerror=alert(1)&gt;' }";
const out = serialize({ h: new Function('return ' + src)() });
// {"h":function f(x){ return x&lt; /script=+/ + '&lt;/script&gt;&lt;img src=x onerror=alert(1)&gt;' }}
```</p>
<p>Embedded as the README documents (`&lt;script&gt;window.S = &lt;%= serialize(state) %&gt;&lt;/script&gt;`)
and parsed by Chromium, the script element ends at the injected tag and the
`&lt;img&gt;` becomes a live DOM node with its `onerror` handler executing in the
page origin.…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-gfhx-hw2g-v5hg"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ubuntu-cve-2026-97711</id>
    <title>UBUNTU-CVE-2026-97711</title>
    <updated>2026-10-02T16:03:09.354032+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Ubuntu:22.04:LTS: node-serialize-javascript, Ubuntu:24.04:LTS: node-serialize-javascript, Ubuntu:26.04:LTS: node-serialize-javascript</p>
<p>Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. From 7.1.1 until 7.1.2, function values serialized by serialize-javascript are not fully protected against script-closing tags in attacker-influenced function source because SCRIPT_CLOSE_REGEXP can consume a second closing tag inside one match. When the serialized function is embedded in a script element, the surviving closing tag terminates the element early and causes the remaining output to be parsed as HTML, enabling cross-site scripting in the page origin. Only function values are affected; ordinary data values and options.isJSON output are unaffected. This issue is fixed in version 7.1.2.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ubuntu-cve-2026-97711"/>
  </entry>
</feed>
