# DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead

**URL:** <https://discourse.nodered.org/t/deprecationwarning-buffer-is-deprecated-due-to-security-and-usability-issues-please-use-the-buffer-alloc-buffer-allocunsafe-or-buffer-from-methods-instead/9987>\
**Category:** Core Development\
**Created:** [10 April 2019 13:14 UTC](https://discourse.nodered.org/t/deprecationwarning-buffer-is-deprecated-due-to-security-and-usability-issues-please-use-the-buffer-alloc-buffer-allocunsafe-or-buffer-from-methods-instead/9987 "2019-04-10T13:14:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![number005](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/number005/32/7430_2.png) [@number005](https://discourse.nodered.org/u/number005)\
**Post date:** [10 April 2019 13:14 UTC](https://discourse.nodered.org/t/deprecationwarning-buffer-is-deprecated-due-to-security-and-usability-issues-please-use-the-buffer-alloc-buffer-allocunsafe-or-buffer-from-methods-instead/9987/1 "2019-04-10T13:14:10Z")

</div>

I get this while installing node-red on a cloud system:

\*\* 2019-04-10T15:01:45.85+0200 [APP/PROC/WEB/0] ERR (node:85) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Is that a problem in the future?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 April 2019 13:20 UTC](https://discourse.nodered.org/t/deprecationwarning-buffer-is-deprecated-due-to-security-and-usability-issues-please-use-the-buffer-alloc-buffer-allocunsafe-or-buffer-from-methods-instead/9987/2 "2019-04-10T13:20:15Z")

</div>

Hi,  
What version of node.js are you installing it on ? and which version of Node-RED ?  
I think we have fixed all these in latest version - but you need node.js 8.x at least for that.  
(and while yes it is a problem longer term - as in - it will stop working at some point - it is still working now, so no need to worry.

---

<div class="post-metadata">

**Author:** ![number005](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/number005/32/7430_2.png) [@number005](https://discourse.nodered.org/u/number005)\
**Post date:** [10 April 2019 13:34 UTC](https://discourse.nodered.org/t/deprecationwarning-buffer-is-deprecated-due-to-security-and-usability-issues-please-use-the-buffer-alloc-buffer-allocunsafe-or-buffer-from-methods-instead/9987/3 "2019-04-10T13:34:52Z")

</div>

Ok thanks! I still use 0.19.4 - as I read about the UI issues with the latest version, I am still waiting with the upgrade.

Node.js is almost the latest Version (10.15.0)

I get a smiliar warning with mongodb: DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.

Is that also fixed in the new version? Or is it a "mongodb-node" specific problem?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [10 April 2019 13:48 UTC](https://discourse.nodered.org/t/deprecationwarning-buffer-is-deprecated-due-to-security-and-usability-issues-please-use-the-buffer-alloc-buffer-allocunsafe-or-buffer-from-methods-instead/9987/4 "2019-04-10T13:48:55Z")

</div>

> [@number005](#):
>
> Ok thanks! I still use 0.19.4 - as I read about the UI issues with the latest version, I am still waiting with the upgrade.

Which UI issues are those? I'm not aware of any outstanding issues with 0.20...

> [@number005](#):
>
> I get a smiliar warning with mongodb: DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version.

That will be specific to the mongo node - the core of node-red doesn't have anything related to mongo in it.
