<?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://vulnerability.circl.lu</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>Thu, 08 Oct 2026 01:48:10 +0000</lastBuildDate>
    <item>
      <title>bdu:2025-16482</title>
      <link>https://vulnerability.circl.lu/vuln/bdu:2025-16482</link>
      <description>bdu:2025-16482</description>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/bdu:2025-16482</guid>
    </item>
    <item>
      <title>fkie_cve-2025-59526</title>
      <link>https://vulnerability.circl.lu/vuln/fkie_cve-2025-59526</link>
      <description>&lt;p&gt;mailgen is a Node.js package that generates responsive HTML e-mails for sending transactional mail. Prior to version 2.0.30, there is an HTML injection vulnerability in plaintext e-mails generated by Mailgen. Projects are affected if the Mailgen.generatePlaintext(email) method is used and given user-generated content. This vulnerability has been patched in version 2.0.30. A workaround involves stripping all HTML tags before passing any content into Mailgen.generatePlaintext(email).&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. Prior to version 2.0.30, there is an HTML injection vulnerability in plaintext e-mails generated by Mailgen. Projects are affected if the Mailgen.generatePlaintext(email) method is used and given user-generated content. This vulnerability has been patched in version 2.0.30. A workaround involves stripping all HTML tags before passing any content into Mailgen.generatePlaintext(email).&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/fkie_cve-2025-59526</guid>
    </item>
    <item>
      <title>GHSA-j2xj-h7w5-r7vp — Mailgen: HTML injection vulnerability in plaintext e-mails</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-j2xj-h7w5-r7vp</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: mailgen&lt;/p&gt;
&lt;p&gt;# HTML Injection and XSS Filter Bypass in Plaintext Emails&lt;/p&gt;
&lt;p&gt;### Summary
An HTML injection vulnerability in plaintext emails generated by Mailgen has been discovered. Your project is affected if you use the `Mailgen.generatePlaintext(email);` method and pass in user-generated content. The issue was discovered and reported by Edoardo Ottavianelli (@edoardottt).&lt;/p&gt;
&lt;p&gt;### Vulnerability Analysis
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…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: mailgen&lt;/p&gt;
&lt;p&gt;# HTML Injection and XSS Filter Bypass in Plaintext Emails&lt;/p&gt;
&lt;p&gt;### Summary
An HTML injection vulnerability in plaintext emails generated by Mailgen has been discovered. Your project is affected if you use the `Mailgen.generatePlaintext(email);` method and pass in user-generated content. The issue was discovered and reported by Edoardo Ottavianelli (@edoardottt).&lt;/p&gt;
&lt;p&gt;### Vulnerability Analysis
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…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-j2xj-h7w5-r7vp</guid>
    </item>
  </channel>
</rss>
