<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sat, 03 Oct 2026 08:14:49 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2025-62380</title>
      <link>https://db.gcve.eu/vuln/fkie_cve-2025-62380</link>
      <description>&lt;p&gt;mailgen is a Node.js package that generates responsive HTML e-mails for sending transactional mail. Mailgen versions through 2.0.31 contain an HTML injection vulnerability in plaintext emails generated with the generatePlaintext method when user generated content is supplied. The plaintext generation code attempts to strip HTML tags using a regular expression and then decodes HTML entities, but tags that include certain Unicode line separator characters are not matched and removed. These encoded tags are later decoded into valid HTML content, allowing unexpected HTML to remain in output intended to be plaintext. Projects are affected if they call Mailgen.generatePlaintext with untrusted input and then render or otherwise process the returned string in a context where HTML is interpreted. This can lead to execution of attacker supplied script in the victim’s browser. Version 2.0.32 fixes the issue.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;mailgen is a Node.js package that generates responsive HTML e-mails for sending transactional mail. Mailgen versions through 2.0.31 contain an HTML injection vulnerability in plaintext emails generated with the generatePlaintext method when user generated content is supplied. The plaintext generation code attempts to strip HTML tags using a regular expression and then decodes HTML entities, but tags that include certain Unicode line separator characters are not matched and removed. These encoded tags are later decoded into valid HTML content, allowing unexpected HTML to remain in output intended to be plaintext. Projects are affected if they call Mailgen.generatePlaintext with untrusted input and then render or otherwise process the returned string in a context where HTML is interpreted. This can lead to execution of attacker supplied script in the victim’s browser. Version 2.0.32 fixes the issue.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/fkie_cve-2025-62380</guid>
    </item>
    <item>
      <title>GHSA-q4w9-x3rv-4c8j — Mailgen has HTML Injection and XSS Filter Bypass in Plaintext Emails</title>
      <link>https://db.gcve.eu/vuln/ghsa-q4w9-x3rv-4c8j</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: mailgen&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;An HTML injection vulnerability in plaintext emails generated by Mailgen has been discovered. Projecta are affected if the `Mailgen.generatePlaintext(email)` method is used and passed in user-generated content. The issue was discovered and reported by Edoardo Ottavianelli (@edoardottt).&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The following function (inside index.js) is intended to strip all HTML content to produce a plaintext string.&lt;/p&gt;
&lt;p&gt;```javascript
// Plaintext text e-mail generator
Mailgen.prototype.generatePlaintext = function (params) {
    // Plaintext theme not cached?
    if (!this.cachedPlaintextTheme) {
        throw new Error(&amp;#39;An error was encountered while loading the plaintext theme.&amp;#39;);
    }
    
    // Parse email params and get back an object with data to inject
    var ejsParams = this.parseParams(params);&lt;/p&gt;
&lt;p&gt;// Render the plaintext theme with ejs, injecting the data accordingly
    var output = ejs.render(this.cachedPlaintextTheme, ejsParams);&lt;/p&gt;
&lt;p&gt;// Definition of the &amp;lt;br /&amp;gt; tag as a regex pattern
    var breakTag = /(?:\&amp;lt;br\s*\/?\&amp;gt;)/g;
    var breakTagPattern = new RegExp(breakTag);&lt;/p&gt;
&lt;p&gt;// Check the plaintext for html break tag, maintains backwards compatiblity
    if (breakTagPattern.test(this.cachedPlaintextTheme)) {
        // Strip all linebreaks from the rendered plaintext
        output = output.replace(/(?:\r\n|\r|\n)/g, &amp;#39;&amp;#39;);&lt;/p&gt;
&lt;p&gt;// Replace html break tags with linebreaks
        output = output.replace(breakTag, &amp;#39;\n&amp;#39;);&lt;/p&gt;
&lt;p&gt;// Remove plaintext theme…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: mailgen&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;An HTML injection vulnerability in plaintext emails generated by Mailgen has been discovered. Projecta are affected if the `Mailgen.generatePlaintext(email)` method is used and passed in user-generated content. The issue was discovered and reported by Edoardo Ottavianelli (@edoardottt).&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The following function (inside index.js) is intended to strip all HTML content to produce a plaintext string.&lt;/p&gt;
&lt;p&gt;```javascript
// Plaintext text e-mail generator
Mailgen.prototype.generatePlaintext = function (params) {
    // Plaintext theme not cached?
    if (!this.cachedPlaintextTheme) {
        throw new Error(&amp;#39;An error was encountered while loading the plaintext theme.&amp;#39;);
    }
    
    // Parse email params and get back an object with data to inject
    var ejsParams = this.parseParams(params);&lt;/p&gt;
&lt;p&gt;// Render the plaintext theme with ejs, injecting the data accordingly
    var output = ejs.render(this.cachedPlaintextTheme, ejsParams);&lt;/p&gt;
&lt;p&gt;// Definition of the &amp;lt;br /&amp;gt; tag as a regex pattern
    var breakTag = /(?:\&amp;lt;br\s*\/?\&amp;gt;)/g;
    var breakTagPattern = new RegExp(breakTag);&lt;/p&gt;
&lt;p&gt;// Check the plaintext for html break tag, maintains backwards compatiblity
    if (breakTagPattern.test(this.cachedPlaintextTheme)) {
        // Strip all linebreaks from the rendered plaintext
        output = output.replace(/(?:\r\n|\r|\n)/g, &amp;#39;&amp;#39;);&lt;/p&gt;
&lt;p&gt;// Replace html break tags with linebreaks
        output = output.replace(breakTag, &amp;#39;\n&amp;#39;);&lt;/p&gt;
&lt;p&gt;// Remove plaintext theme…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-q4w9-x3rv-4c8j</guid>
    </item>
  </channel>
</rss>
