<?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-11-01T11:52:08.819860+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-115897</id>
    <title>fkie_cve-2026-115897</title>
    <updated>2026-11-01T11:52:08.849964+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. Prior to 7.1.3, the function-source escaping logic does not neutralize a bare closing-script prefix when attacker-influenced function source text ends exactly at that prefix. Because each function body is escaped independently, a delimiter supplied by surrounding serialized output can terminate an HTML script element, and a later serialized value supplies injected markup that becomes a live element in the page. Exploitation requires control of a serialized function's source text, such as through a spoofed toString(). This issue is fixed in version 7.1.3.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-115897"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-m5mm-p8h7-m29v</id>
    <title>GHSA-m5mm-p8h7-m29v — Serialize JavaScript: Cross-site scripting (XSS) via unescaped &lt;/script at the end of a serialized function body</title>
    <updated>2026-11-01T11:52:08.850044+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. Before 7.1.3 that guarantee did not hold for a **function
value whose source ends in a bare `&lt;/script`**.</p>
<p>Each function body is escaped on its own, and a bare `&lt;/script` was only
neutralized when followed — within the same body — by a character the HTML
tokenizer treats as ending the tag name (TAB, LF, FF, CR, SPACE, `/` or `&gt;`).
A body ending exactly at `&lt;/script` has no following character, so it was
emitted unescaped. The delimiter is then supplied by the surrounding output
(for example the newline the `space` option emits after the value), and a
later serialized value can supply the closing `&gt;` followed by markup:</p>
<p>```js
const serialize = require('serialize-javascript');
function f() {} f.toString = () =&gt; 'function f(){ return 1 }//&lt;/script';
function g() {} g.toString = () =&gt; 'function g(x){ return x } &gt; &lt;img src=x onerror=alert(1)&gt;';
serialize({ a: { f }, g }, { space: 2 });
// {
//   "a": {
//     "f": function f(){ return 1 }//&lt;/script
//   },
//   "g": function g(x){ return x } &gt; &lt;img src=x onerror=alert(1)&gt;
// }
```</p>
<p>Embedded in a `&lt;script&gt;` element, the script ends at the injected tag and the
`&lt;img&gt;` becomes a live element in the page.</p>
<p>Exploitation requires an attacker to control the **source text** of a
serialized function, in practice through a spoofed `toString()`. Real
functions always end in `}`, so ordinary function values are not affected,
and non-fun…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-m5mm-p8h7-m29v"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/msrc_cve-2026-115897</id>
    <title>msrc_CVE-2026-115897 — Serialize JavaScript: Cross-site scripting (XSS) via unescaped &lt;/script at the end of a serialized function body</title>
    <updated>2026-11-01T11:52:08.850114+00:00</updated>
    <content>msrc_CVE-2026-115897</content>
    <link href="https://db.gcve.eu/vuln/msrc_cve-2026-115897"/>
  </entry>
</feed>
